greenplumn CParseHandlerCostParams 源码

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

greenplumn CParseHandlerCostParams 代码

文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/parser/CParseHandlerCostParams.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2013 EMC Corp.
//
//	@filename:
//		CParseHandlerCostParams.h
//
//	@doc:
//		Parse handler for cost model paerameters
//---------------------------------------------------------------------------

#ifndef GPDXL_CParseHandlerCostParams_H
#define GPDXL_CParseHandlerCostParams_H

#include "gpos/base.h"

#include "gpopt/cost/ICostModelParams.h"
#include "naucrates/dxl/parser/CParseHandlerBase.h"

namespace gpdxl
{
using namespace gpos;

//---------------------------------------------------------------------------
//	@class:
//		CParseHandlerCostParams
//
//	@doc:
//		Parse handler for cost model parameters
//
//---------------------------------------------------------------------------
class CParseHandlerCostParams : public CParseHandlerBase
{
private:
	// cost params
	ICostModelParams *m_cost_model_params;

	// process the start of an element
	void StartElement(
		const XMLCh *const element_uri,			// URI of element's namespace
		const XMLCh *const element_local_name,	// local part of element's name
		const XMLCh *const element_qname,		// element's qname
		const Attributes &attr					// element's attributes
		) override;

	// process the end of an element
	void EndElement(
		const XMLCh *const element_uri,			// URI of element's namespace
		const XMLCh *const element_local_name,	// local part of element's name
		const XMLCh *const element_qname		// element's qname
		) override;

public:
	// private ctor
	CParseHandlerCostParams(const CParseHandlerCostParams &) = delete;

	// ctor/dtor
	CParseHandlerCostParams(CMemoryPool *mp,
							CParseHandlerManager *parse_handler_mgr,
							CParseHandlerBase *parse_handler_root);

	~CParseHandlerCostParams() override;

	// returns the dxl representation of cost parameters
	ICostModelParams *
	GetCostModelParams()
	{
		return m_cost_model_params;
	}

	EDxlParseHandlerType
	GetParseHandlerType() const override
	{
		return EdxlphCostParams;
	}
};
}  // namespace gpdxl

#endif	// !GPDXL_CParseHandlerCostParams_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CParseHandlerAgg 源码

greenplumn CParseHandlerAppend 源码

greenplumn CParseHandlerArray 源码

greenplumn CParseHandlerAssert 源码

greenplumn CParseHandlerBase 源码

greenplumn CParseHandlerBroadcastMotion 源码

greenplumn CParseHandlerCTEConfig 源码

greenplumn CParseHandlerCTEList 源码

greenplumn CParseHandlerColDescr 源码

greenplumn CParseHandlerColStats 源码

0  赞