Package org.h2.command.query
Class SelectUnion.LazyResultUnion
- java.lang.Object
-
- org.h2.result.FetchedResult
-
- org.h2.result.LazyResult
-
- org.h2.command.query.SelectUnion.LazyResultUnion
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ResultInterface
- Enclosing class:
- SelectUnion
private final class SelectUnion.LazyResultUnion extends LazyResult
Lazy execution for this union.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcolumnCount(package private) ResultInterfacel(package private) booleanleftDone(package private) ResultInterfacer(package private) booleanrightDone
-
Constructor Summary
Constructors Constructor Description LazyResultUnion(Expression[] expressions, int columnCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the result and delete any temporary filesprotected Value[]fetchNextRow()Fetch next row or null if none available.intgetVisibleColumnCount()Get the number of visible columns.voidreset()Go to the beginning of the result, that means before the first row.-
Methods inherited from class org.h2.result.LazyResult
getAlias, getColumnName, getColumnType, getFetchSize, getNullable, getRowCount, getSchemaName, getTableName, hasNext, isClosed, isIdentity, isLazy, setFetchSize, setLimit, skip, skipNextRow
-
Methods inherited from class org.h2.result.FetchedResult
createShallowCopy, currentRow, getRowId, isAfterLast, needToClose, next
-
-
-
-
Field Detail
-
columnCount
int columnCount
-
l
ResultInterface l
-
r
ResultInterface r
-
leftDone
boolean leftDone
-
rightDone
boolean rightDone
-
-
Constructor Detail
-
LazyResultUnion
LazyResultUnion(Expression[] expressions, int columnCount)
-
-
Method Detail
-
getVisibleColumnCount
public int getVisibleColumnCount()
Description copied from interface:ResultInterfaceGet the number of visible columns. More columns may exist internally for sorting or grouping.- Returns:
- the number of columns
-
fetchNextRow
protected Value[] fetchNextRow()
Description copied from class:LazyResultFetch next row or null if none available.- Specified by:
fetchNextRowin classLazyResult- Returns:
- next row or null
-
close
public void close()
Description copied from interface:ResultInterfaceClose the result and delete any temporary files- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceResultInterface- Overrides:
closein classLazyResult
-
reset
public void reset()
Description copied from interface:ResultInterfaceGo to the beginning of the result, that means before the first row.- Specified by:
resetin interfaceResultInterface- Overrides:
resetin classLazyResult
-
-