greenplumn CCTEConfig 源码
greenplumn CCTEConfig 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/engine/CCTEConfig.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CCTEConfig.h
//
// @doc:
// CTE configurations
//---------------------------------------------------------------------------
#ifndef GPOPT_CCTEConfig_H
#define GPOPT_CCTEConfig_H
#include "gpos/base.h"
#include "gpos/common/CDouble.h"
#include "gpos/common/CRefCount.h"
#include "gpos/memory/CMemoryPool.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CCTEConfig
//
// @doc:
// CTE configurations
//
//---------------------------------------------------------------------------
class CCTEConfig : public CRefCount
{
private:
// CTE inlining cut-off
ULONG m_ulCTEInliningCutoff;
public:
CCTEConfig(const CCTEConfig &) = delete;
// ctor
CCTEConfig(ULONG cte_inlining_cut_off)
: m_ulCTEInliningCutoff(cte_inlining_cut_off)
{
}
// CTE inlining cut-off
ULONG
UlCTEInliningCutoff() const
{
return m_ulCTEInliningCutoff;
}
// generate default optimizer configurations
static CCTEConfig *
PcteconfDefault(CMemoryPool *mp)
{
return GPOS_NEW(mp) CCTEConfig(0 /* cte_inlining_cut_off */);
}
}; // class CCTEConfig
} // namespace gpopt
#endif // !GPOPT_CCTEConfig_H
// EOF
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦