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 CConstExprEvaluatorDXL 源码