greenplumn CPhysicalExternalScan 源码
greenplumn CPhysicalExternalScan 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CPhysicalExternalScan.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 VMware, Inc. or its affiliates.
//
// @filename:
// CPhysicalExternalScan.h
//
// @doc:
// External scan operator
//---------------------------------------------------------------------------
#ifndef GPOPT_CPhysicalExternalScan_H
#define GPOPT_CPhysicalExternalScan_H
#include "gpos/base.h"
#include "gpopt/operators/CPhysicalTableScan.h"
namespace gpopt
{
//---------------------------------------------------------------------------
// @class:
// CPhysicalExternalScan
//
// @doc:
// External scan operator
//
//---------------------------------------------------------------------------
class CPhysicalExternalScan : public CPhysicalTableScan
{
private:
public:
CPhysicalExternalScan(const CPhysicalExternalScan &) = delete;
// ctor
CPhysicalExternalScan(CMemoryPool *, const CName *, CTableDescriptor *,
CColRefArray *);
// ident accessors
EOperatorId
Eopid() const override
{
return EopPhysicalExternalScan;
}
// return a string for operator name
const CHAR *
SzId() const override
{
return "CPhysicalExternalScan";
}
// match function
BOOL Matches(COperator *) const override;
//-------------------------------------------------------------------------------------
// Derived Plan Properties
//-------------------------------------------------------------------------------------
// derive rewindability
CRewindabilitySpec *
PrsDerive(CMemoryPool *mp,
CExpressionHandle & // exprhdl
) const override
{
// external tables are neither rewindable nor rescannable
return GPOS_NEW(mp) CRewindabilitySpec(
CRewindabilitySpec::ErtNone, CRewindabilitySpec::EmhtNoMotion);
}
//-------------------------------------------------------------------------------------
// Enforced Properties
//-------------------------------------------------------------------------------------
// return rewindability property enforcing type for this operator
CEnfdProp::EPropEnforcingType EpetRewindability(
CExpressionHandle &exprhdl,
const CEnfdRewindability *per) const override;
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
// conversion function
static CPhysicalExternalScan *
PopConvert(COperator *pop)
{
GPOS_ASSERT(nullptr != pop);
GPOS_ASSERT(EopPhysicalExternalScan == pop->Eopid());
return dynamic_cast<CPhysicalExternalScan *>(pop);
}
}; // class CPhysicalExternalScan
} // namespace gpopt
#endif // !GPOPT_CPhysicalExternalScan_H
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦