greenplumn CPatternLeaf 源码

  • 2022-08-18
  • 浏览 (334)

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 源码目录

相关文章

greenplumn CExpression 源码

greenplumn CExpressionFactorizer 源码

greenplumn CExpressionHandle 源码

greenplumn CExpressionPreprocessor 源码

greenplumn CExpressionUtils 源码

greenplumn CHashedDistributions 源码

greenplumn CLogical 源码

greenplumn CLogicalApply 源码

greenplumn CLogicalAssert 源码

greenplumn CLogicalBitmapTableGet 源码

0  赞