greenplumn CScalarArrayRefIndexList 源码
greenplumn CScalarArrayRefIndexList 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CScalarArrayRefIndexList.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 VMware, Inc. or its affiliates.
//
// @filename:
// CScalarArrayRefIndexList.cpp
//
// @doc:
// Implementation of scalar arrayref index list
//---------------------------------------------------------------------------
#include "gpopt/operators/CScalarArrayRefIndexList.h"
#include "gpos/base.h"
using namespace gpopt;
using namespace gpmd;
//---------------------------------------------------------------------------
// @function:
// CScalarArrayRefIndexList::CScalarArrayRefIndexList
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CScalarArrayRefIndexList::CScalarArrayRefIndexList(CMemoryPool *mp,
EIndexListType eilt)
: CScalar(mp), m_eilt(eilt)
{
GPOS_ASSERT(EiltSentinel > eilt);
}
//---------------------------------------------------------------------------
// @function:
// CScalarArrayRefIndexList::Matches
//
// @doc:
// Match function on operator level
//
//---------------------------------------------------------------------------
BOOL
CScalarArrayRefIndexList::Matches(COperator *pop) const
{
if (pop->Eopid() != Eopid())
{
return false;
}
CScalarArrayRefIndexList *popIndexList =
CScalarArrayRefIndexList::PopConvert(pop);
return m_eilt == popIndexList->Eilt();
}
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦