greenplumn CCTEConfig 源码

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

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

相关信息

greenplumn 源码目录

相关文章

greenplumn CEngine 源码

greenplumn CEnumeratorConfig 源码

greenplumn CHint 源码

greenplumn CPartialPlan 源码

greenplumn CStatisticsConfig 源码

0  赞