greenplumn CConstExprEvaluatorDefault 源码

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

greenplumn CConstExprEvaluatorDefault 代码

文件路径:/src/backend/gporca/libgpopt/include/gpopt/eval/CConstExprEvaluatorDefault.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2014 VMware, Inc. or its affiliates.
//
//	@filename:
//		CConstExprEvaluatorDefault.h
//
//	@doc:
//		Dummy implementation of the constant expression evaluator
//
//	@owner:
//
//
//	@test:
//
//---------------------------------------------------------------------------

#ifndef GPOPT_CConstExprEvaluatorDefault_H
#define GPOPT_CConstExprEvaluatorDefault_H

#include "gpos/base.h"

#include "gpopt/eval/IConstExprEvaluator.h"

namespace gpopt
{
//---------------------------------------------------------------------------
//	@class:
//		CConstExprEvaluatorDefault
//
//	@doc:
//		Constant expression evaluator default implementation for the case when
//		no database instance is available
//
//---------------------------------------------------------------------------
class CConstExprEvaluatorDefault : public IConstExprEvaluator
{
private:
public:
	CConstExprEvaluatorDefault(const CConstExprEvaluatorDefault &) = delete;

	// ctor
	CConstExprEvaluatorDefault() : IConstExprEvaluator()
	{
	}

	// dtor
	~CConstExprEvaluatorDefault() override;

	// Evaluate the given expression and return the result as a new expression
	CExpression *PexprEval(CExpression *pexpr) override;

	// Returns true iff the evaluator can evaluate constant expressions
	BOOL FCanEvalExpressions() override;
};
}  // namespace gpopt

#endif	// !GPOPT_CConstExprEvaluatorGPDB_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CConstExprEvaluatorDXL 源码

greenplumn IConstDXLNodeEvaluator 源码

greenplumn IConstExprEvaluator 源码

0  赞