greenplumn CConfigParamMapping 源码
greenplumn CConfigParamMapping 代码
文件路径:/src/include/gpopt/config/CConfigParamMapping.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CConfigParamMapping.h
//
// @doc:
// Mapping of GPDB config params to traceflags
//
// @test:
//
//
//---------------------------------------------------------------------------
#ifndef GPOPT_CGUCMapping_H
#define GPOPT_CGUCMapping_H
#include "gpos/base.h"
#include "gpos/common/CBitSet.h"
#include "gpos/memory/CMemoryPool.h"
#include "naucrates/traceflags/traceflags.h"
using namespace gpos;
namespace gpdxl
{
//---------------------------------------------------------------------------
// @class:
// CConfigParamMapping
//
// @doc:
// Functionality for mapping GPDB config params to traceflags
//
//---------------------------------------------------------------------------
class CConfigParamMapping
{
private:
//------------------------------------------------------------------
// @class:
// SConfigMappingElem
//
// @doc:
// Unit describing the mapping of a single GPDB config param
// to a trace flag
//
//------------------------------------------------------------------
struct SConfigMappingElem
{
// trace flag
EOptTraceFlag m_trace_flag;
// config param address
BOOL *m_is_param;
// if true, we negate the config param value before setting traceflag value
BOOL m_negate_param;
// description
const WCHAR *description_str;
};
// array of mapping elements
static SConfigMappingElem m_elements[];
public:
// private ctor
CConfigParamMapping(const CConfigParamMapping &) = delete;
// pack enabled optimizer config params in a traceflag bitset
static CBitSet *PackConfigParamInBitset(CMemoryPool *mp, ULONG xform_id);
};
} // namespace gpdxl
#endif // ! GPOPT_CGUCMapping_H
// EOF
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦