greenplumn CDXLColRef 源码

  • 2022-08-18
  • 浏览 (262)

greenplumn CDXLColRef 代码

文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/operators/CDXLColRef.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2010 Greenplum, Inc.
//
//	@filename:
//		CDXLColRef.h
//
//	@doc:
//		Class for representing column references.
//---------------------------------------------------------------------------



#ifndef GPDXL_CDXLColRef_H
#define GPDXL_CDXLColRef_H

#include "gpos/base.h"
#include "gpos/common/CDynamicPtrArray.h"
#include "gpos/common/CRefCount.h"

#include "naucrates/md/CMDName.h"
#include "naucrates/md/IMDId.h"

namespace gpdxl
{
using namespace gpmd;
using namespace gpos;

// fwd decl
class CXMLSerializer;
class CDXLColRef;

// arrays of column references
using CDXLColRefArray = CDynamicPtrArray<CDXLColRef, CleanupRelease>;

//---------------------------------------------------------------------------
//	@class:
//		CDXLColRef
//
//	@doc:
//		Class for representing references to columns in DXL trees
//
//---------------------------------------------------------------------------
class CDXLColRef : public CRefCount
{
private:
	// name
	CMDName *m_mdname;

	// id
	const ULONG m_id;

	// column type
	IMDId *m_mdid_type;

	// column type modifier
	INT m_iTypeModifer;

public:
	CDXLColRef(const CDXLColRef &) = delete;

	// ctor/dtor
	CDXLColRef(CMDName *mdname, ULONG id, IMDId *mdid_type, INT type_modifier);

	~CDXLColRef() override;

	// accessors
	const CMDName *MdName() const;

	IMDId *MdidType() const;

	INT TypeModifier() const;

	ULONG Id() const;
};
}  // namespace gpdxl



#endif	// !GPDXL_CDXLColRef_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CDXLColDescr 源码

greenplumn CDXLCtasStorageOptions 源码

greenplumn CDXLDatum 源码

greenplumn CDXLDatumBool 源码

greenplumn CDXLDatumGeneric 源码

greenplumn CDXLDatumInt2 源码

greenplumn CDXLDatumInt4 源码

greenplumn CDXLDatumInt8 源码

greenplumn CDXLDatumOid 源码

greenplumn CDXLDatumStatsDoubleMappable 源码

0  赞