| Modifier and Type | Field and Description |
|---|---|
| private WindowFrame | |
| private ArrayList | |
| private String | |
| private ArrayList |
| Access | Constructor and Description |
|---|---|
| public | Window(String
name of the parent window parent, ArrayList<Expression> PARTITION BY clause, or null partitionBy, ArrayList<QueryOrderBy> ORDER BY clause, or null orderBy, WindowFrame window frame clause, or null frame)Creates a new instance of window clause. |
| Modifier and Type | Method and Description |
|---|---|
| public static void | appendOrderBy(StringBuilder
string builder builder, ArrayList<QueryOrderBy> ORDER BY clause, or null orderBy, int formatting flags sqlFlags, boolean whether synthetic ORDER BY clause should be generated when it
is missing forceOrderBy)Appends ORDER BY clause to the specified builder. |
| private static void | |
| public Value | Returns: key for the current group, or nullsession session)Returns the key for the current group. |
| public ArrayList | |
| public StringBuilder | Returns: the specified string builderstring builder builder, int formatting flags sqlFlags, boolean whether synthetic ORDER BY clause should be generated when it
is missing forceOrderBy)Appends SQL representation to the specified builder. |
| public WindowFrame | |
| public boolean | Returns: true if window ordering clause is specified or ROWS unit
is usedReturns |
| public void | mapColumns(ColumnResolver
the column resolver resolver, int the subquery nesting level level)Map the columns of the resolver to expression columns. |
| public void | |
| private void | |
| public void | setEvaluatable(TableFilter
the table filter tableFilter, boolean true if the table filter can return value value)Tell the expression columns whether the table filter can return values now. |
| public String | |
| public void |
| frame | back to summary |
|---|---|
| private WindowFrame frame | |
| orderBy | back to summary |
|---|---|
| private ArrayList<QueryOrderBy> orderBy | |
| parent | back to summary |
|---|---|
| private String parent | |
| partitionBy | back to summary |
|---|---|
| private ArrayList<Expression> partitionBy | |
| Window | back to summary |
|---|---|
| public Window(String parent, ArrayList<Expression> partitionBy, ArrayList<QueryOrderBy> orderBy, WindowFrame frame) Creates a new instance of window clause.
| |
| appendOrderBy | back to summary |
|---|---|
| public static void appendOrderBy(StringBuilder builder, ArrayList<QueryOrderBy> orderBy, int sqlFlags, boolean forceOrderBy) Appends ORDER BY clause to the specified builder.
| |
| appendOrderByStart | back to summary |
|---|---|
| private static void appendOrderByStart(StringBuilder builder) | |
| getCurrentKey | back to summary |
|---|---|
| public Value getCurrentKey(SessionLocal session) Returns the key for the current group.
| |
| getOrderBy | back to summary |
|---|---|
| public ArrayList Returns ORDER BY clause.
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags, boolean forceOrderBy) Appends SQL representation to the specified builder.
| |
| getWindowFrame | back to summary |
|---|---|
| public WindowFrame getWindowFrame() Returns window frame, or null.
| |
| isOrdered | back to summary |
|---|---|
| public boolean isOrdered() Returns
| |
| mapColumns | back to summary |
|---|---|
| public void mapColumns(ColumnResolver resolver, int level) Map the columns of the resolver to expression columns.
| |
| optimize | back to summary |
|---|---|
| public void optimize(SessionLocal session) Try to optimize the window conditions.
| |
| resolveWindows | back to summary |
|---|---|
| private void resolveWindows(ColumnResolver resolver) | |
| setEvaluatable | back to summary |
|---|---|
| public void setEvaluatable(TableFilter tableFilter, boolean value) Tell the expression columns whether the table filter can return values now. This is used when optimizing the query.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateAggregate | back to summary |
|---|---|
| public void updateAggregate(SessionLocal session, int stage) Update an aggregate value.
| |