greenplumn CDXLPhysicalTableScan 源码
greenplumn CDXLPhysicalTableScan 代码
文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/operators/CDXLPhysicalTableScan.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2010 Greenplum, Inc.
//
// @filename:
// CDXLPhysicalTableScan.h
//
// @doc:
// Class for representing DXL table scan operators.
//---------------------------------------------------------------------------
#ifndef GPDXL_CDXLPhysicalTableScan_H
#define GPDXL_CDXLPhysicalTableScan_H
#include "gpos/base.h"
#include "naucrates/dxl/operators/CDXLPhysical.h"
#include "naucrates/dxl/operators/CDXLTableDescr.h"
namespace gpdxl
{
// indices of table scan elements in the children array
enum Edxlts
{
EdxltsIndexProjList = 0,
EdxltsIndexFilter,
EdxltsSentinel
};
//---------------------------------------------------------------------------
// @class:
// CDXLPhysicalTableScan
//
// @doc:
// Class for representing DXL table scan operators
//
//---------------------------------------------------------------------------
class CDXLPhysicalTableScan : public CDXLPhysical
{
private:
// table descriptor for the scanned table
CDXLTableDescr *m_dxl_table_descr;
public:
CDXLPhysicalTableScan(CDXLPhysicalTableScan &) = delete;
// ctors
explicit CDXLPhysicalTableScan(CMemoryPool *mp);
CDXLPhysicalTableScan(CMemoryPool *mp, CDXLTableDescr *table_descr);
// dtor
~CDXLPhysicalTableScan() override;
// setters
void SetTableDescriptor(CDXLTableDescr *);
// operator type
Edxlopid GetDXLOperator() const override;
// operator name
const CWStringConst *GetOpNameStr() const override;
// table descriptor
const CDXLTableDescr *GetDXLTableDescr();
// serialize operator in DXL format
void SerializeToDXL(CXMLSerializer *xml_serializer,
const CDXLNode *dxlnode) const override;
// conversion function
static CDXLPhysicalTableScan *
Cast(CDXLOperator *dxl_op)
{
GPOS_ASSERT(nullptr != dxl_op);
GPOS_ASSERT(EdxlopPhysicalTableScan == dxl_op->GetDXLOperator() ||
EdxlopPhysicalExternalScan == dxl_op->GetDXLOperator());
return dynamic_cast<CDXLPhysicalTableScan *>(dxl_op);
}
#ifdef GPOS_DEBUG
// checks whether the operator has valid structure, i.e. number and
// types of child nodes
void AssertValid(const CDXLNode *dxlnode,
BOOL validate_children) const override;
#endif // GPOS_DEBUG
};
} // namespace gpdxl
#endif // !GPDXL_CDXLPhysicalTableScan_H
// EOF
相关信息
相关文章
greenplumn CDXLCtasStorageOptions 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony