greenplumn CScalarSubqueryExists 源码

  • 2022-08-18
  • 浏览 (9)

greenplumn CScalarSubqueryExists 代码

文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CScalarSubqueryExists.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2011 EMC Corp.
//
//	@filename:
//		CScalarSubqueryExists.h
//
//	@doc:
//		Scalar subquery EXISTS operator
//---------------------------------------------------------------------------
#ifndef GPOPT_CScalarSubqueryExists_H
#define GPOPT_CScalarSubqueryExists_H

#include "gpos/base.h"

#include "gpopt/operators/CScalarSubqueryExistential.h"

namespace gpopt
{
using namespace gpos;

//---------------------------------------------------------------------------
//	@class:
//		CScalarSubqueryExists
//
//	@doc:
//		Scalar subquery EXISTS.
//
//---------------------------------------------------------------------------
class CScalarSubqueryExists : public CScalarSubqueryExistential
{
private:
public:
	CScalarSubqueryExists(const CScalarSubqueryExists &) = delete;

	// ctor
	CScalarSubqueryExists(CMemoryPool *mp) : CScalarSubqueryExistential(mp)
	{
	}

	// dtor
	~CScalarSubqueryExists() override = default;

	// ident accessors
	EOperatorId
	Eopid() const override
	{
		return EopScalarSubqueryExists;
	}

	// return a string for scalar subquery
	const CHAR *
	SzId() const override
	{
		return "CScalarSubqueryExists";
	}

	// conversion function
	static CScalarSubqueryExists *
	PopConvert(COperator *pop)
	{
		GPOS_ASSERT(nullptr != pop);
		GPOS_ASSERT(EopScalarSubqueryExists == pop->Eopid());

		return dynamic_cast<CScalarSubqueryExists *>(pop);
	}

};	// class CScalarSubqueryExists
}  // namespace gpopt

#endif	// !GPOPT_CScalarSubqueryExists_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CExpression 源码

greenplumn CExpressionFactorizer 源码

greenplumn CExpressionHandle 源码

greenplumn CExpressionPreprocessor 源码

greenplumn CExpressionUtils 源码

greenplumn CHashedDistributions 源码

greenplumn CLogical 源码

greenplumn CLogicalApply 源码

greenplumn CLogicalAssert 源码

greenplumn CLogicalBitmapTableGet 源码

0  赞