Package org.h2.command.query
Class SelectGroups.Plain
- java.lang.Object
-
- org.h2.command.query.SelectGroups
-
- org.h2.command.query.SelectGroups.Plain
-
- Enclosing class:
- SelectGroups
private static final class SelectGroups.Plain extends SelectGroups
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<java.lang.Object[]>cursorCursor fornext()method.private java.util.ArrayList<java.lang.Object[]>rows-
Fields inherited from class org.h2.command.query.SelectGroups
currentGroupByExprData, currentGroupRowId, expressions, session
-
-
Constructor Summary
Constructors Constructor Description Plain(SessionLocal session, java.util.ArrayList<Expression> expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone()Invoked after all source rows are evaluated.ValueRownext()Returns the key of the next group.voidnextSource()Invoked for each source row to evaluate group key and setup all necessary data for aggregates.voidreset()Resets this group data for reuse.(package private) voidupdateCurrentGroupExprData()Update group-by data specified by implementation.-
Methods inherited from class org.h2.command.query.SelectGroups
createRow, getCurrentGroupExprData, getCurrentGroupRowId, getInstance, getWindowExprData, isCurrentGroup, nextLazyGroup, nextLazyRow, remove, resetLazy, setCurrentGroupExprData, setWindowExprData
-
-
-
-
Field Detail
-
rows
private java.util.ArrayList<java.lang.Object[]> rows
-
cursor
private java.util.Iterator<java.lang.Object[]> cursor
Cursor fornext()method.
-
-
Constructor Detail
-
Plain
Plain(SessionLocal session, java.util.ArrayList<Expression> expressions)
-
-
Method Detail
-
reset
public void reset()
Description copied from class:SelectGroupsResets this group data for reuse.- Overrides:
resetin classSelectGroups
-
nextSource
public void nextSource()
Description copied from class:SelectGroupsInvoked for each source row to evaluate group key and setup all necessary data for aggregates.- Specified by:
nextSourcein classSelectGroups
-
updateCurrentGroupExprData
void updateCurrentGroupExprData()
Description copied from class:SelectGroupsUpdate group-by data specified by implementation.- Specified by:
updateCurrentGroupExprDatain classSelectGroups
-
done
public void done()
Description copied from class:SelectGroupsInvoked after all source rows are evaluated.- Overrides:
donein classSelectGroups
-
next
public ValueRow next()
Description copied from class:SelectGroupsReturns the key of the next group.- Specified by:
nextin classSelectGroups- Returns:
- the key of the next group, or null
-
-