//--------------------------------------------------------------------------- // Greenplum Database // Copyright (c) 2020-Present VMware, Inc. or its affiliates //--------------------------------------------------------------------------- #ifndef GPOPT_CPartSelectorInfo_H #define GPOPT_CPartSelectorInfo_H #include #include 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, gpos::Equals, CleanupDelete, CleanupDelete>; } // namespace gpopt #endif // !GPOPT_CPartSelectorInfo_H // EOF