greenplumn CMappingElementColIdParamId 源码

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

greenplumn CMappingElementColIdParamId 代码

文件路径:/src/include/gpopt/translate/CMappingElementColIdParamId.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2012 EMC Corp.
//
//	@filename:
//		CMappingElementColIdParamId.h
//
//	@doc:
//		Wrapper class providing functions for the mapping element between ColId
//		and ParamId during DXL->PlStmt translation
//
//	@test:
//
//
//---------------------------------------------------------------------------
#ifndef GPDXL_CMappingElementColIdParamId_H
#define GPDXL_CMappingElementColIdParamId_H

#include "gpos/base.h"

#include "naucrates/md/IMDId.h"

namespace gpdxl
{
using namespace gpos;
using namespace gpmd;
//---------------------------------------------------------------------------
//	@class:
//		CMappingElementColIdParamId
//
//	@doc:
//		Wrapper class providing functions for the mapping element between
//		ColId and ParamId during DXL->PlStmt translation
//
//---------------------------------------------------------------------------
class CMappingElementColIdParamId : public CRefCount
{
private:
	// column identifier that is used as the key
	ULONG m_colid;

	// param identifier
	ULONG m_paramid;

	// param type
	IMDId *m_mdid;

	INT m_type_modifier;

public:
	// ctors and dtor
	CMappingElementColIdParamId(ULONG colid, ULONG paramid, IMDId *mdid,
								INT type_modifier);

	~CMappingElementColIdParamId() override = default;

	// return the ColId
	ULONG
	GetColId() const
	{
		return m_colid;
	}

	// return the ParamId
	ULONG
	ParamId() const
	{
		return m_paramid;
	}

	// return the type
	IMDId *
	MdidType() const
	{
		return m_mdid;
	}

	INT
	TypeModifier() const
	{
		return m_type_modifier;
	}
};
}  // namespace gpdxl

#endif	// GPDXL_CMappingElementColIdParamId_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CCTEListEntry 源码

greenplumn CContextDXLToPlStmt 源码

greenplumn CContextQueryToDXL 源码

greenplumn CDXLTranslateContext 源码

greenplumn CDXLTranslateContextBaseTable 源码

greenplumn CGPDBAttInfo 源码

greenplumn CGPDBAttOptCol 源码

greenplumn CIndexQualInfo 源码

greenplumn CMappingColIdVar 源码

greenplumn CMappingColIdVarPlStmt 源码

0  赞