greenplumn CScalarSwitchCase 源码
greenplumn CScalarSwitchCase 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CScalarSwitchCase.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CScalarSwitchCase.h
//
// @doc:
// Scalar SwitchCase operator
//---------------------------------------------------------------------------
#ifndef GPOPT_CScalarSwitchCase_H
#define GPOPT_CScalarSwitchCase_H
#include "gpos/base.h"
#include "gpopt/base/CDrvdProp.h"
#include "gpopt/operators/CScalar.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CScalarSwitchCase
//
// @doc:
// Scalar SwitchCase operator
//
//---------------------------------------------------------------------------
class CScalarSwitchCase : public CScalar
{
private:
public:
CScalarSwitchCase(const CScalarSwitchCase &) = delete;
// ctor
explicit CScalarSwitchCase(CMemoryPool *mp);
// dtor
~CScalarSwitchCase() override = default;
// ident accessors
EOperatorId
Eopid() const override
{
return EopScalarSwitchCase;
}
// return a string for operator name
const CHAR *
SzId() const override
{
return "CScalarSwitchCase";
}
// match function
BOOL Matches(COperator *pop) const override;
// sensitivity to order of inputs
BOOL
FInputOrderSensitive() const override
{
return true;
}
// return a copy of the operator with remapped columns
COperator *
PopCopyWithRemappedColumns(CMemoryPool *, //mp,
UlongToColRefMap *, //colref_mapping,
BOOL //must_exist
) override
{
return PopCopyDefault();
}
IMDId *
MdidType() const override
{
GPOS_ASSERT(!"Invalid function call: CScalarSwitchCase::MdidType()");
return nullptr;
}
// boolean expression evaluation
EBoolEvalResult
Eber(ULongPtrArray *pdrgpulChildren) const override
{
return EberNullOnAllNullChildren(pdrgpulChildren);
}
// conversion function
static CScalarSwitchCase *
PopConvert(COperator *pop)
{
GPOS_ASSERT(nullptr != pop);
GPOS_ASSERT(EopScalarSwitchCase == pop->Eopid());
return dynamic_cast<CScalarSwitchCase *>(pop);
}
}; // class CScalarSwitchCase
} // namespace gpopt
#endif // !GPOPT_CScalarSwitchCase_H
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦