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

Extension methods to SqlExpression
Afficher le fichier Open project: deveel/deveeldb

Méthodes publiques

Méthode 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 méthode

public static AsQueryPlan ( this expression ) : IQueryPlanNode
expression this
Résultat IQueryPlanNode

AsReferenceName() public static méthode

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

EvaluateToConstant() public static méthode

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.
Résultat Field

EvaluateToConstant() public static méthode

public static EvaluateToConstant ( this expression, IRequest request, IVariableResolver variableResolver ) : Field
expression this
request IRequest
variableResolver IVariableResolver
Résultat Field

HasAggregate() public static méthode

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
Résultat bool

IsConstant() public static méthode

public static IsConstant ( this expression ) : bool
expression this
Résultat bool

ReturnType() public static méthode

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.
Résultat SqlType