C# Class Deveel.Data.Sql.Expressions.SqlExpressionExtensions

Extension methods to SqlExpression
Mostra file Open project: deveel/deveeldb

Public Methods

Method Description
AsQueryPlan ( this expression ) : IQueryPlanNode
AsReferenceName ( this expression ) : ObjectName

Extracts the name of the reference from the expression.

EvaluateToConstant ( this expression, EvaluateContext context ) : Field

Evaluates the expression and reduces to a constant expression, whose value is then returned.

EvaluateToConstant ( this expression, IRequest request, IVariableResolver variableResolver ) : Field
HasAggregate ( this expression, IRequest query ) : bool

Verifies if the expression contains any aggregate function in the tree.

IsConstant ( this expression ) : bool
ReturnType ( this expression, IRequest query, IVariableResolver variableResolver ) : SqlType

Gets the return type of the expression when evaluated.

Method Details

AsQueryPlan() public static method

public static AsQueryPlan ( this expression ) : IQueryPlanNode
expression this
return IQueryPlanNode

AsReferenceName() public static method

Extracts the name of the reference from the expression.
public static AsReferenceName ( this expression ) : ObjectName
expression this The expression that encapsulates the reference
return ObjectName

EvaluateToConstant() public static method

Evaluates the expression and reduces to a constant expression, whose value is then returned.
/// If the expression could not be evaluated or if the result of the /// evaluation is not a . ///
public static EvaluateToConstant ( this expression, EvaluateContext context ) : Field
expression this The expression to evaluate.
context EvaluateContext The context used to evaluate the expression.
return Field

EvaluateToConstant() public static method

public static EvaluateToConstant ( this expression, IRequest request, IVariableResolver variableResolver ) : Field
expression this
request IRequest
variableResolver IVariableResolver
return Field

HasAggregate() public static method

Verifies if the expression contains any aggregate function in the tree.
public static HasAggregate ( this expression, IRequest query ) : bool
expression this The expression to verify.
query IRequest
return bool

IsConstant() public static method

public static IsConstant ( this expression ) : bool
expression this
return bool

ReturnType() public static method

Gets the return type of the expression when evaluated.
public static ReturnType ( this expression, IRequest query, IVariableResolver variableResolver ) : SqlType
expression this The expression to check.
query IRequest The query context used to evaluate the return type /// of the expression.
variableResolver IVariableResolver The object used to resolve variable references in the expression tree.
return SqlType