greenplumn CDXLScalarIdent 源码
greenplumn CDXLScalarIdent 代码
文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/operators/CDXLScalarIdent.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2010 Greenplum, Inc.
//
// @filename:
// CDXLScalarIdent.h
//
// @doc:
// Class for representing DXL scalar identifier operators.
//---------------------------------------------------------------------------
#ifndef GPDXL_CDXLScalarIdent_H
#define GPDXL_CDXLScalarIdent_H
#include "gpos/base.h"
#include "naucrates/dxl/operators/CDXLColRef.h"
#include "naucrates/dxl/operators/CDXLScalar.h"
#include "naucrates/md/IMDId.h"
namespace gpdxl
{
using namespace gpmd;
//---------------------------------------------------------------------------
// @class:
// CDXLScalarIdent
//
// @doc:
// Class for representing DXL scalar identifier operators.
//
//---------------------------------------------------------------------------
class CDXLScalarIdent : public CDXLScalar
{
private:
// column reference
CDXLColRef *m_dxl_colref;
public:
CDXLScalarIdent(CDXLScalarIdent &) = delete;
// ctor/dtor
CDXLScalarIdent(CMemoryPool *, CDXLColRef *);
~CDXLScalarIdent() override;
// ident accessors
Edxlopid GetDXLOperator() const override;
// name of the operator
const CWStringConst *GetOpNameStr() const override;
// accessors
const CDXLColRef *GetDXLColRef() const;
IMDId *MdidType() const;
INT TypeModifier() const;
// serialize operator in DXL format
void SerializeToDXL(CXMLSerializer *xml_serializer,
const CDXLNode *node) const override;
// conversion function
static CDXLScalarIdent *
Cast(CDXLOperator *dxl_op)
{
GPOS_ASSERT(nullptr != dxl_op);
GPOS_ASSERT(EdxlopScalarIdent == dxl_op->GetDXLOperator());
return dynamic_cast<CDXLScalarIdent *>(dxl_op);
}
// does the operator return a boolean result
BOOL HasBoolResult(CMDAccessor *md_accessor) const override;
#ifdef GPOS_DEBUG
// checks whether the operator has valid structure
void AssertValid(const CDXLNode *node,
BOOL validate_children) const override;
#endif // GPOS_DEBUG
};
} // namespace gpdxl
#endif // !GPDXL_CDXLScalarIdent_H
// EOF
相关信息
相关文章
greenplumn CDXLCtasStorageOptions 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony