greenplumn CQueryToDXLResult 源码

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

greenplumn CQueryToDXLResult 代码

文件路径:/src/backend/gporca/libnaucrates/include/naucrates/base/CQueryToDXLResult.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2011 EMC Corp.
//
//	@filename:
//		CQueryToDXLResult.h
//
//	@doc:
//		Class representing the result of the Query to DXL translation
//
//---------------------------------------------------------------------------

#ifndef GPDXL_CTranslatorQueryToDXLOutput_H
#define GPDXL_CTranslatorQueryToDXLOutput_H

#include "gpos/base.h"

#include "naucrates/dxl/operators/CDXLNode.h"

namespace gpdxl
{
using namespace gpos;

//---------------------------------------------------------------------------
//	@class:
//		CQueryToDXLResult
//
//	@doc:
//		Class representing the result of the Query to DXL translation
//
//---------------------------------------------------------------------------
class CQueryToDXLResult
{
private:
	// DXL representing the Query
	CDXLNode *m_query_dxl;

	// array of DXL nodes that represent the query output
	CDXLNodeArray *m_query_output;

	// CTE list
	CDXLNodeArray *m_cte_producers;

public:
	// ctor
	CQueryToDXLResult(CDXLNode *query, CDXLNodeArray *query_output,
					  CDXLNodeArray *cte_producers);

	// dtor
	~CQueryToDXLResult();

	// return the DXL representation of the query
	const CDXLNode *CreateDXLNode() const;

	// return the array of output columns
	const CDXLNodeArray *GetOutputColumnsDXLArray() const;

	// return the array of CTEs
	const CDXLNodeArray *GetCTEProducerDXLArray() const;
};
}  // namespace gpdxl

#endif	// !GPDXL_CTranslatorQueryToDXLOutput_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CDatumBoolGPDB 源码

greenplumn CDatumGenericGPDB 源码

greenplumn CDatumInt2GPDB 源码

greenplumn CDatumInt4GPDB 源码

greenplumn CDatumInt8GPDB 源码

greenplumn CDatumOidGPDB 源码

greenplumn IDatum 源码

greenplumn IDatumBool 源码

greenplumn IDatumGeneric 源码

greenplumn IDatumInt2 源码

0  赞