greenplumn CParseHandlerUtils 源码

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

greenplumn CParseHandlerUtils 代码

文件路径:/src/backend/gporca/libnaucrates/src/parser/CParseHandlerUtils.cpp

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2012 EMC Corp.
//
//	@filename:
//		CParseHandlerUtils.cpp
//
//	@doc:
//		Implementation of the helper methods for parse handler
//
//---------------------------------------------------------------------------

#include "naucrates/dxl/parser/CParseHandlerUtils.h"

#include "naucrates/statistics/IStatistics.h"

using namespace gpos;
using namespace gpdxl;
using namespace gpnaucrates;

//---------------------------------------------------------------------------
//	@function:
//		CParseHandlerUtils::SetProperties
//
//	@doc:
//		Parse and the set operator's costing and statistical properties
//
//---------------------------------------------------------------------------
void
CParseHandlerUtils::SetProperties(CDXLNode *dxlnode,
								  CParseHandlerProperties *prop_parse_handler)
{
	GPOS_ASSERT(nullptr != prop_parse_handler->GetProperties());
	// set physical properties
	CDXLPhysicalProperties *dxl_properties =
		prop_parse_handler->GetProperties();
	dxl_properties->AddRef();
	dxlnode->SetProperties(dxl_properties);

	// set the statistical information
	CDXLStatsDerivedRelation *dxl_stats_derived_relation =
		prop_parse_handler->GetDxlStatsDrvdRelation();
	if (nullptr != dxl_stats_derived_relation)
	{
		dxl_stats_derived_relation->AddRef();
		dxl_properties->SetStats(dxl_stats_derived_relation);
	}
}

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CParseHandlerAgg 源码

greenplumn CParseHandlerAppend 源码

greenplumn CParseHandlerArray 源码

greenplumn CParseHandlerAssert 源码

greenplumn CParseHandlerBase 源码

greenplumn CParseHandlerBroadcastMotion 源码

greenplumn CParseHandlerCTEConfig 源码

greenplumn CParseHandlerCTEList 源码

greenplumn CParseHandlerColDescr 源码

greenplumn CParseHandlerColStats 源码

0  赞