Package org.h2.expression.analysis
Class WindowFrameBound
java.lang.Object
org.h2.expression.analysis.WindowFrameBound
Window frame bound.
-
Constructor Summary
ConstructorsConstructorDescriptionWindowFrameBound(WindowFrameBoundType type, Expression value) Creates new instance of window frame bound. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of preserved expression.getSQL(StringBuilder builder, boolean following, int sqlFlags) Appends SQL representation to the specified builder.getType()Returns the typegetValue()Returns the value.booleanReturns whether bound is defined as n PRECEDING or n FOLLOWING.booleanReturns whether bound is defined with a variable.
-
Constructor Details
-
WindowFrameBound
Creates new instance of window frame bound.- Parameters:
type- bound typevalue- bound value, if any
-
-
Method Details
-
getType
Returns the type- Returns:
- the type
-
getValue
Returns the value.- Returns:
- the value
-
isParameterized
public boolean isParameterized()Returns whether bound is defined as n PRECEDING or n FOLLOWING.- Returns:
- whether bound is defined as n PRECEDING or n FOLLOWING
-
isVariable
public boolean isVariable()Returns whether bound is defined with a variable. This method may be used only afteroptimize(SessionLocal)invocation.- Returns:
- whether bound is defined with a variable
-
getExpressionIndex
public int getExpressionIndex()Returns the index of preserved expression.- Returns:
- the index of preserved expression, or -1
-
getSQL
Appends SQL representation to the specified builder.- Parameters:
builder- string builderfollowing- if false return SQL for starting clause, if true return SQL for following clausesqlFlags- formatting flags- Returns:
- the specified string builder
- See Also:
-