greenplumn SPartSelectorInfo 源码
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 CColConstraintsArrayMapper 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦