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:
AutoCloseable,ResultInterface
- Enclosing class:
SelectUnion
Lazy execution for this union.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) ResultInterface(package private) boolean(package private) ResultInterface(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.h2.result.LazyResult
getAlias, getColumnName, getColumnType, getFetchSize, getNullable, getRowCount, getSchemaName, getTableName, hasNext, isClosed, isIdentity, isLazy, setFetchSize, setLimit, skip, skipNextRowMethods inherited from class org.h2.result.FetchedResult
createShallowCopy, currentRow, getRowId, isAfterLast, needToClose, next
-
Field Details
-
columnCount
int columnCount -
l
-
r
-
leftDone
boolean leftDone -
rightDone
boolean rightDone
-
-
Constructor Details
-
LazyResultUnion
LazyResultUnion(Expression[] expressions, int columnCount)
-
-
Method Details
-
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
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 interfaceAutoCloseable- 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
-