greenplumn CDXLScalarArrayRefIndexList 代码
文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/operators/CDXLScalarArrayRefIndexList.h
/---------------------------------------------------------------------------
/ Greenplum Database
/ Copyright (C) 2014 VMware, Inc. or its affiliates.
/
/ @filename:
/ CDXLScalarArrayRefIndexList.h
/
/ @doc:
/ Class for representing DXL scalar arrayref index list
/---------------------------------------------------------------------------
#ifndef GPDXL_CDXLScalarArrayRefIndexList_H
#define GPDXL_CDXLScalarArrayRefIndexList_H
#include "gpos/base.h"
#include "naucrates/dxl/operators/CDXLScalar.h"
#include "naucrates/md/IMDId.h"
namespace gpdxl
{
using namespace gpmd;
/---------------------------------------------------------------------------
/ @class:
/ CDXLScalarArrayRefIndexList
/
/ @doc:
/ Class for representing DXL scalar arrayref index list
/
/---------------------------------------------------------------------------
class CDXLScalarArrayRefIndexList : public CDXLScalar
{
public:
enum EIndexListBound
{
EilbLower, / lower index
EilbUpper, / upper index
EilbSentinel
};
private:
/ index list bound
EIndexListBound m_index_list_bound;
/ string representation of index list bound
static const CWStringConst *GetDXLIndexListBoundStr(
EIndexListBound index_list_bound);
public:
CDXLScalarArrayRefIndexList(const CDXLScalarArrayRefIndexList &) = delete;
/ ctor
CDXLScalarArrayRefIndexList(CMemoryPool *mp,
EIndexListBound index_list_bound);
/ ident accessors
Edxlopid GetDXLOperator() const override;
/ operator name
const CWStringConst *GetOpNameStr() const override;
/ index list bound
EIndexListBound
GetDXLIndexListBound() const
{
return m_index_list_bound;
}
/ serialize operator in DXL format
void SerializeToDXL(CXMLSerializer *xml_serializer,
const CDXLNode *dxlnode) const override;
/ does the operator return a boolean result
BOOL
HasBoolResult(CMDAccessor * /md_accessor
) const override
{
return false;
}
#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
/ conversion function
static CDXLScalarArrayRefIndexList *
Cast(CDXLOperator *dxl_op)
{
GPOS_ASSERT(nullptr != dxl_op);
GPOS_ASSERT(EdxlopScalarArrayRefIndexList == dxl_op->GetDXLOperator());
return dynamic_cast<CDXLScalarArrayRefIndexList *>(dxl_op);
}
};
} / namespace gpdxl
#endif / !GPDXL_CDXLScalarArrayRefIndexList_H
/ EOF
相关信息
相关文章
greenplumn CDXLCtasStorageOptions 源码