| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private abstract static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final WindowFrameExclusion | |
| private final WindowFrameBound | |
| private final WindowFrameBound | |
| private final WindowFrameUnits |
| Access | Constructor and Description |
|---|---|
| public | WindowFrame(WindowFrameUnits
units units, WindowFrameBound starting clause starting, WindowFrameBound following clause following, WindowFrameExclusion exclusion clause exclusion)Creates new instance of window frame clause. |
| Modifier and Type | Method and Description |
|---|---|
| private static Iterator | biIterator(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2, boolean reverse)
|
| private Iterator | complexIterator(ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow, int startIndex, int endIndex, boolean reverse)
|
| private static Value[] | Returns: row for comparison operations, or null if result is out of range and should be treated as UNLIMITEDthe session session, ArrayList<Value[]> rows in partition orderedRows, SortOrder the sort order sortOrder, int index of the current row currentRow, WindowFrameBound window frame bound bound, boolean false for PRECEDING, true for FOLLOWING add)Appends bound value to the current row and produces row for comparison operations. |
| public static int | Returns: end indexwindow over, SessionLocal the session session, ArrayList<Value[]> ordered rows orderedRows, SortOrder sort order sortOrder, int index of the current row currentRow)Returns end index for the specified frame, or default end index if frame is null. |
| private int | Returns: end indexthe session session, ArrayList<Value[]> ordered rows orderedRows, SortOrder sort order sortOrder, int index of the current row currentRow)Returns end index of this frame, |
| public WindowFrameExclusion | |
| public WindowFrameBound | |
| private int | Returns: starting or ending index of a window frame (inclusive), can be 0 or be equal to the number of rows if frame is not limited from that sidethe session session, ArrayList<Value[]> rows in partition orderedRows, SortOrder the sort order sortOrder, int index of the current row currentRow, WindowFrameBound window frame bound bound, boolean false for start index, true for end index forFollowing)Returns starting or ending index of a window frame. |
| private static int | |
| public StringBuilder | Returns: the specified string builderstring builder builder, int quote all identifiers formattingFlags)Append SQL representation to the specified builder. |
| public int | Returns: start indexthe session session, ArrayList<Value[]> ordered rows orderedRows, SortOrder sort order sortOrder, int index of the current row currentRow)Returns start index of this frame, |
| public WindowFrameBound | |
| public WindowFrameUnits | |
| private static Value | |
| public boolean | |
| public boolean | Returns: if bounds of this frame has variable expressionsCheck if bounds of this frame has variable expressions. |
| public static Iterator | Returns: iteratorwindow over, SessionLocal the session session, ArrayList<Value[]> ordered rows orderedRows, SortOrder sort order sortOrder, int index of the current row currentRow, boolean whether iterator should iterate in reverse order reverse)Returns iterator for the specified frame, or default iterator if frame is null. |
| public Iterator | Returns: iteratorthe session session, ArrayList<Value[]> ordered rows orderedRows, SortOrder sort order sortOrder, int index of the current row currentRow, boolean whether iterator should iterate in reverse order reverse)Returns iterator. |
| pack-priv void | mapColumns(ColumnResolver
the column resolver resolver, int the subquery nesting level level, int current state for nesting checks state)Map the columns of the resolver to expression columns. |
| pack-priv void | |
| private static Iterator | |
| private static int | |
| private static int | |
| private static Iterator | triIterator(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2, int startIndex3, int endIndex3, boolean reverse)
|
| pack-priv void |
| exclusion | back to summary |
|---|---|
| private final WindowFrameExclusion exclusion | |
| following | back to summary |
|---|---|
| private final WindowFrameBound following | |
| starting | back to summary |
|---|---|
| private final WindowFrameBound starting | |
| units | back to summary |
|---|---|
| private final WindowFrameUnits units | |
| WindowFrame | back to summary |
|---|---|
| public WindowFrame(WindowFrameUnits units, WindowFrameBound starting, WindowFrameBound following, WindowFrameExclusion exclusion) Creates new instance of window frame clause.
| |
| biIterator | back to summary |
|---|---|
| private static Iterator | |
| complexIterator | back to summary |
|---|---|
| private Iterator | |
| getCompareRow | back to summary |
|---|---|
| private static Value[] getCompareRow(SessionLocal session, ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow, WindowFrameBound bound, boolean add) Appends bound value to the current row and produces row for comparison operations.
| |
| getEndIndex | back to summary |
|---|---|
| public static int getEndIndex(Window over, SessionLocal session, ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow) Returns end index for the specified frame, or default end index if frame is null.
| |
| getEndIndex | back to summary |
|---|---|
| private int getEndIndex(SessionLocal session, ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow) Returns end index of this frame,
| |
| getExclusion | back to summary |
|---|---|
| public WindowFrameExclusion getExclusion() Returns the exclusion clause.
| |
| getFollowing | back to summary |
|---|---|
| public WindowFrameBound getFollowing() Returns the following clause.
| |
| getIndex | back to summary |
|---|---|
| private int getIndex(SessionLocal session, ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow, WindowFrameBound bound, boolean forFollowing) Returns starting or ending index of a window frame.
| |
| getIntOffset | back to summary |
|---|---|
| private static int getIntOffset(WindowFrameBound bound, Value[] values, SessionLocal session) | |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int formattingFlags) Append SQL representation to the specified builder.
| |
| getStartIndex | back to summary |
|---|---|
| public int getStartIndex(SessionLocal session, ArrayList<Value[]> orderedRows, SortOrder sortOrder, int currentRow) Returns start index of this frame,
| |
| getStarting | back to summary |
|---|---|
| public WindowFrameBound getStarting() Returns the starting clause.
| |
| getUnits | back to summary |
|---|---|
| public WindowFrameUnits getUnits() Returns the units.
| |
| getValueOffset | back to summary |
|---|---|
| private static Value getValueOffset(WindowFrameBound bound, Value[] values, SessionLocal session) | |
| isValid | back to summary |
|---|---|
| public boolean isValid() Checks validity of this frame.
| |
| isVariableBounds | back to summary |
|---|---|
| public boolean isVariableBounds() Check if bounds of this frame has variable expressions. This method may
be used only after
| |
| iterator | back to summary |
|---|---|
| public static Iterator Returns iterator for the specified frame, or default iterator if frame is null. | |
| iterator | back to summary |
|---|---|
| public Iterator Returns iterator. | |
| mapColumns | back to summary |
|---|---|
| pack-priv void mapColumns(ColumnResolver resolver, int level, int state) Map the columns of the resolver to expression columns.
| |
| optimize | back to summary |
|---|---|
| pack-priv void optimize(SessionLocal session) Try to optimize bound expressions.
| |
| plainIterator | back to summary |
|---|---|
| private static Iterator | |
| toGroupEnd | back to summary |
|---|---|
| private static int toGroupEnd(ArrayList<Value[]> orderedRows, SortOrder sortOrder, int offset, int maxOffset) | |
| toGroupStart | back to summary |
|---|---|
| private static int toGroupStart(ArrayList<Value[]> orderedRows, SortOrder sortOrder, int offset, int minOffset) | |
| triIterator | back to summary |
|---|---|
| private static Iterator | |
| updateAggregate | back to summary |
|---|---|
| pack-priv void updateAggregate(SessionLocal session, int stage) Update an aggregate value.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Value[] | next()
Overrides org. Implements java. Returns the next element in the iteration. |
| end1 | back to summary |
|---|---|
| pack-priv final int end1 | |
| start1 | back to summary |
|---|---|
| pack-priv final int start1 | |
| BiItr | back to summary |
|---|---|
| pack-priv BiItr(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2) | |
| next | back to summary |
|---|---|
| public Value[] next() Overrides org. Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | BiReverseItr(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2)
|
| Modifier and Type | Method and Description |
|---|---|
| public Value[] | next()
Overrides org. Implements java. Returns the next element in the iteration. |
| end1 | back to summary |
|---|---|
| pack-priv final int end1 | |
| start1 | back to summary |
|---|---|
| pack-priv final int start1 | |
| BiReverseItr | back to summary |
|---|---|
| pack-priv BiReverseItr(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2) | |
| next | back to summary |
|---|---|
| public Value[] next() Overrides org. Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv final ArrayList |
| cursor | back to summary |
|---|---|
| pack-priv int cursor | |
| orderedRows | back to summary |
|---|---|
| pack-priv final ArrayList<Value[]> orderedRows | |
| Itr | back to summary |
|---|---|
| pack-priv Itr(ArrayList<Value[]> orderedRows) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Value[] |
| endIndex | back to summary |
|---|---|
| pack-priv final int endIndex | |
| PlainItr | back to summary |
|---|---|
| pack-priv PlainItr(ArrayList<Value[]> orderedRows, int startIndex, int endIndex) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Value[] next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Value[] |
| startIndex | back to summary |
|---|---|
| pack-priv final int startIndex | |
| PlainReverseItr | back to summary |
|---|---|
| pack-priv PlainReverseItr(ArrayList<Value[]> orderedRows, int startIndex, int endIndex) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Value[] next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Value[] | next()
Overrides org. Implements java. Returns the next element in the iteration. |
| end2 | back to summary |
|---|---|
| private final int end2 | |
| start2 | back to summary |
|---|---|
| private final int start2 | |
| TriItr | back to summary |
|---|---|
| pack-priv TriItr(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2, int startIndex3, int endIndex3) | |
| next | back to summary |
|---|---|
| public Value[] next() Overrides org. Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | TriReverseItr(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2, int startIndex3, int endIndex3)
|
| Modifier and Type | Method and Description |
|---|---|
| public Value[] | next()
Overrides org. Implements java. Returns the next element in the iteration. |
| end2 | back to summary |
|---|---|
| private final int end2 | |
| start2 | back to summary |
|---|---|
| private final int start2 | |
| TriReverseItr | back to summary |
|---|---|
| pack-priv TriReverseItr(ArrayList<Value[]> orderedRows, int startIndex1, int endIndex1, int startIndex2, int endIndex2, int startIndex3, int endIndex3) | |
| next | back to summary |
|---|---|
| public Value[] next() Overrides org. Implements java. Doc from java. Returns the next element in the iteration. | |