greenplumn CLogicalExternalGet 源码

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

greenplumn CLogicalExternalGet 代码

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

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2013 VMware, Inc. or its affiliates.
//
//	@filename:
//		CLogicalExternalGet.h
//
//	@doc:
//		Logical external get operator
//---------------------------------------------------------------------------
#ifndef GPOPT_CLogicalExternalGet_H
#define GPOPT_CLogicalExternalGet_H

#include "gpos/base.h"

#include "gpopt/operators/CLogicalGet.h"

namespace gpopt
{
// fwd declarations
class CTableDescriptor;
class CName;
class CColRefSet;

//---------------------------------------------------------------------------
//	@class:
//		CLogicalExternalGet
//
//	@doc:
//		Logical external get operator
//
//---------------------------------------------------------------------------
class CLogicalExternalGet : public CLogicalGet
{
private:
public:
	CLogicalExternalGet(const CLogicalExternalGet &) = delete;

	// ctors
	explicit CLogicalExternalGet(CMemoryPool *mp);

	CLogicalExternalGet(CMemoryPool *mp, const CName *pnameAlias,
						CTableDescriptor *ptabdesc);

	CLogicalExternalGet(CMemoryPool *mp, const CName *pnameAlias,
						CTableDescriptor *ptabdesc,
						CColRefArray *pdrgpcrOutput);

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

	// return a string for operator name
	const CHAR *
	SzId() const override
	{
		return "CLogicalExternalGet";
	}

	// match function
	BOOL Matches(COperator *pop) const override;

	// return a copy of the operator with remapped columns
	COperator *PopCopyWithRemappedColumns(CMemoryPool *mp,
										  UlongToColRefMap *colref_mapping,
										  BOOL must_exist) override;

	//-------------------------------------------------------------------------------------
	// Required Relational Properties
	//-------------------------------------------------------------------------------------

	// compute required stat columns of the n-th child
	CColRefSet *
	PcrsStat(CMemoryPool *,		   // mp,
			 CExpressionHandle &,  // exprhdl
			 CColRefSet *,		   // pcrsInput
			 ULONG				   // child_index
	) const override
	{
		GPOS_ASSERT(!"CLogicalExternalGet has no children");
		return nullptr;
	}

	//-------------------------------------------------------------------------------------
	// Transformations
	//-------------------------------------------------------------------------------------

	// candidate set of xforms
	CXformSet *PxfsCandidates(CMemoryPool *mp) const override;

	//-------------------------------------------------------------------------------------
	//-------------------------------------------------------------------------------------
	//-------------------------------------------------------------------------------------

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

		return dynamic_cast<CLogicalExternalGet *>(pop);
	}

};	// class CLogicalExternalGet
}  // namespace gpopt

#endif	// !GPOPT_CLogicalExternalGet_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CExpression 源码

greenplumn CExpressionFactorizer 源码

greenplumn CExpressionHandle 源码

greenplumn CExpressionPreprocessor 源码

greenplumn CExpressionUtils 源码

greenplumn CHashedDistributions 源码

greenplumn CLogical 源码

greenplumn CLogicalApply 源码

greenplumn CLogicalAssert 源码

greenplumn CLogicalBitmapTableGet 源码

0  赞