C# 클래스 Deveel.Data.Sql.Expressions.SqlExpressionExtensions

Extension methods to SqlExpression
파일 보기 프로젝트 열기: deveel/deveeldb

공개 메소드들

메소드 설명
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.

메소드 상세

AsQueryPlan() 공개 정적인 메소드

public static AsQueryPlan ( this expression ) : IQueryPlanNode
expression this
리턴 IQueryPlanNode

AsReferenceName() 공개 정적인 메소드

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

EvaluateToConstant() 공개 정적인 메소드

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.
리턴 Field

EvaluateToConstant() 공개 정적인 메소드

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

HasAggregate() 공개 정적인 메소드

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
리턴 bool

IsConstant() 공개 정적인 메소드

public static IsConstant ( this expression ) : bool
expression this
리턴 bool

ReturnType() 공개 정적인 메소드

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.
리턴 SqlType