greenplumn CPatternLeaf 源码
greenplumn CPatternLeaf 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CPatternLeaf.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2009 Greenplum, Inc.
//
// @filename:
// CPatternLeaf.h
//
// @doc:
// Pattern that matches a single leaf
//---------------------------------------------------------------------------
#ifndef GPOPT_CPatternLeaf_H
#define GPOPT_CPatternLeaf_H
#include "gpos/base.h"
#include "gpopt/operators/CPattern.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CPatternLeaf
//
// @doc:
// Pattern that matches a single leaf
//
//---------------------------------------------------------------------------
class CPatternLeaf : public CPattern
{
private:
public:
CPatternLeaf(const CPatternLeaf &) = delete;
// ctor
explicit CPatternLeaf(CMemoryPool *mp) : CPattern(mp)
{
}
// dtor
~CPatternLeaf() override = default;
// check if operator is a pattern leaf
BOOL
FLeaf() const override
{
return true;
}
// ident accessors
EOperatorId
Eopid() const override
{
return EopPatternLeaf;
}
// return a string for operator name
const CHAR *
SzId() const override
{
return "CPatternLeaf";
}
}; // class CPatternLeaf
} // namespace gpopt
#endif // !GPOPT_CPatternLeaf_H
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦