greenplumn CPhysicalTableScan 源码
greenplumn CPhysicalTableScan 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CPhysicalTableScan.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2009 Greenplum, Inc.
//
// @filename:
// CPhysicalTableScan.h
//
// @doc:
// Table scan operator
//---------------------------------------------------------------------------
#ifndef GPOPT_CPhysicalTableScan_H
#define GPOPT_CPhysicalTableScan_H
#include "gpos/base.h"
#include "gpopt/operators/CPhysicalScan.h"
namespace gpopt
{
//---------------------------------------------------------------------------
// @class:
// CPhysicalTableScan
//
// @doc:
// Table scan operator
//
//---------------------------------------------------------------------------
class CPhysicalTableScan : public CPhysicalScan
{
private:
// private copy ctor
CPhysicalTableScan(const CPhysicalTableScan &);
public:
// ctors
explicit CPhysicalTableScan(CMemoryPool *mp);
CPhysicalTableScan(CMemoryPool *, const CName *, CTableDescriptor *,
CColRefArray *);
// ident accessors
EOperatorId
Eopid() const override
{
return EopPhysicalTableScan;
}
// return a string for operator name
const CHAR *
SzId() const override
{
return "CPhysicalTableScan";
}
// operator specific hash function
ULONG HashValue() const override;
// match function
BOOL Matches(COperator *) const override;
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
// debug print
IOstream &OsPrint(IOstream &) const override;
// conversion function
static CPhysicalTableScan *
PopConvert(COperator *pop)
{
GPOS_ASSERT(nullptr != pop);
GPOS_ASSERT(EopPhysicalTableScan == pop->Eopid() ||
EopPhysicalExternalScan == pop->Eopid());
return dynamic_cast<CPhysicalTableScan *>(pop);
}
// statistics derivation during costing
IStatistics *
PstatsDerive(CMemoryPool *, // mp
CExpressionHandle &, // exprhdl
CReqdPropPlan *, // prpplan
IStatisticsArray * //stats_ctxt
) const override
{
GPOS_ASSERT(
!"stats derivation during costing for table scan is invalid");
return nullptr;
}
CRewindabilitySpec *
PrsDerive(CMemoryPool *mp,
CExpressionHandle & // exprhdl
) const override
{
// mark-restorability of output is always true
return GPOS_NEW(mp)
CRewindabilitySpec(CRewindabilitySpec::ErtMarkRestore,
CRewindabilitySpec::EmhtNoMotion);
}
}; // class CPhysicalTableScan
} // namespace gpopt
#endif // !GPOPT_CPhysicalTableScan_H
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦