greenplumn CJoinOrderMinCard 源码
greenplumn CJoinOrderMinCard 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/xforms/CJoinOrderMinCard.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CJoinOrderMinCard.h
//
// @doc:
// Cardinality-based join order generation
//---------------------------------------------------------------------------
#ifndef GPOPT_CJoinOrderMinCard_H
#define GPOPT_CJoinOrderMinCard_H
#include "gpos/base.h"
#include "gpos/common/CBitSet.h"
#include "gpos/common/CRefCount.h"
#include "gpos/io/IOstream.h"
#include "gpopt/xforms/CJoinOrder.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CJoinOrderMinCard
//
// @doc:
// Helper class for creating join orders based on cardinality of results
//
//---------------------------------------------------------------------------
class CJoinOrderMinCard : public CJoinOrder
{
private:
// result component
SComponent *m_pcompResult;
public:
// ctor
CJoinOrderMinCard(CMemoryPool *mp, CExpressionArray *pdrgpexprComponents,
CExpressionArray *pdrgpexprConjuncts);
// dtor
~CJoinOrderMinCard() override;
// main handler
virtual CExpression *PexprExpand();
// print function
IOstream &OsPrint(IOstream &) const;
CXform::EXformId
EOriginXForm() const override
{
return CXform::ExfExpandNAryJoinMinCard;
}
}; // class CJoinOrderMinCard
} // namespace gpopt
#endif // !GPOPT_CJoinOrderMinCard_H
// EOF
相关信息
相关文章
greenplumn CJoinOrderGreedy 源码
greenplumn CSubqueryHandler 源码
greenplumn CXformAntiSemiJoinAntiSemiJoinNotInSwap 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦