greenplumn IConstDXLNodeEvaluator 源码

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

greenplumn IConstDXLNodeEvaluator 代码

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

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2014 VMware, Inc. or its affiliates.
//
//	@filename:
//		IConstDXLNodeEvaluator.h
//
//	@doc:
//		Interface for evaluating constant expressions given as DXL
//
//	@owner:
//
//
//	@test:
//
//---------------------------------------------------------------------------

#ifndef GPOPT_IConstDXLNodeEvaluator_H
#define GPOPT_IConstDXLNodeEvaluator_H

#include "gpos/base.h"

// forward declaration
namespace gpdxl
{
class CDXLNode;
}

namespace gpopt
{
//---------------------------------------------------------------------------
//	@class:
//		IConstExprEvaluator
//
//	@doc:
//		Interface for evaluating constant expressions given as DXL
//
//---------------------------------------------------------------------------
class IConstDXLNodeEvaluator
{
public:
	// dtor
	virtual ~IConstDXLNodeEvaluator() = default;

	// evaluate the given DXL node representing an expression and return the result
	// as DXL. caller takes ownership of returned DXL node
	virtual gpdxl::CDXLNode *EvaluateExpr(const gpdxl::CDXLNode *pdxlnExpr) = 0;

	// returns true iff the evaluator can evaluate constant expressions without
	// subqueries
	virtual gpos::BOOL FCanEvalExpressions() = 0;
};
}  // namespace gpopt

#endif	// !GPOPT_IConstDXLNodeEvaluator_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CConstExprEvaluatorDXL 源码

greenplumn CConstExprEvaluatorDefault 源码

greenplumn IConstExprEvaluator 源码

0  赞