greenplumn SPartSelectorInfo 源码

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

greenplumn SPartSelectorInfo 代码

文件路径:/src/backend/gporca/libgpopt/include/gpopt/base/SPartSelectorInfo.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (c) 2020-Present VMware, Inc. or its affiliates
//---------------------------------------------------------------------------

#ifndef GPOPT_CPartSelectorInfo_H
#define GPOPT_CPartSelectorInfo_H

#include <gpopt/operators/CExpression.h>
#include <naucrates/statistics/IStatistics.h>

namespace gpopt
{
struct SPartSelectorInfoEntry
{
	// selector id
	ULONG m_selector_id;

	// filter stored in the partition selector
	CExpression *m_filter_expr;

	// statistics of the subtree of the partition selector
	IStatistics *m_stats;

	SPartSelectorInfoEntry(ULONG mSelectorId, CExpression *mFilterExpr,
						   IStatistics *mStats)
		: m_selector_id(mSelectorId),
		  m_filter_expr(mFilterExpr),
		  m_stats(mStats)
	{
	}

	~SPartSelectorInfoEntry()
	{
		m_filter_expr->Release();
		m_stats->Release();
	}
};

using SPartSelectorInfo =
	CHashMap<ULONG, SPartSelectorInfoEntry, gpos::HashValue<ULONG>,
			 gpos::Equals<ULONG>, CleanupDelete<ULONG>,
			 CleanupDelete<SPartSelectorInfoEntry>>;

}  // namespace gpopt
#endif	// !GPOPT_CPartSelectorInfo_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CAutoOptCtxt 源码

greenplumn CCTEInfo 源码

greenplumn CCTEMap 源码

greenplumn CCTEReq 源码

greenplumn CCastUtils 源码

greenplumn CColConstraintsArrayMapper 源码

greenplumn CColConstraintsHashMapper 源码

greenplumn CColRef 源码

greenplumn CColRefComputed 源码

greenplumn CColRefSet 源码

0  赞