greenplumn IMDIndex 源码
greenplumn IMDIndex 代码
文件路径:/src/backend/gporca/libnaucrates/src/md/IMDIndex.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 VMware, Inc. or its affiliates.
//
// @filename:
// IMDIndex.cpp
//
// @doc:
// Implementation of MD index
//---------------------------------------------------------------------------
#include "naucrates/md/IMDIndex.h"
#include "gpos/string/CWStringDynamic.h"
#include "naucrates/dxl/xml/dxltokens.h"
using namespace gpdxl;
using namespace gpmd;
//---------------------------------------------------------------------------
// @function:
// IMDRelation::GetDistrPolicyStr
//
// @doc:
// Return relation distribution policy as a string value
//
//---------------------------------------------------------------------------
const CWStringConst *
IMDIndex::GetDXLStr(EmdindexType index_type)
{
switch (index_type)
{
case EmdindBtree:
return CDXLTokens::GetDXLTokenStr(EdxltokenIndexTypeBtree);
case EmdindBitmap:
return CDXLTokens::GetDXLTokenStr(EdxltokenIndexTypeBitmap);
case EmdindGist:
return CDXLTokens::GetDXLTokenStr(EdxltokenIndexTypeGist);
case EmdindGin:
return CDXLTokens::GetDXLTokenStr(EdxltokenIndexTypeGin);
case EmdindBrin:
return CDXLTokens::GetDXLTokenStr(EdxltokenIndexTypeBrin);
default:
GPOS_ASSERT(!"Unrecognized index type");
return nullptr;
}
}
// EOF
相关信息
相关文章
greenplumn CDXLStatsDerivedColumn 源码
greenplumn CDXLStatsDerivedRelation 源码
greenplumn CMDAggregateGPDB 源码
greenplumn CMDArrayCoerceCastGPDB 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦