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, skipNextRow
Methods 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:ResultInterface
Get the number of visible columns. More columns may exist internally for sorting or grouping.- Returns:
- the number of columns
-
fetchNextRow
Description copied from class:LazyResult
Fetch next row or null if none available.- Specified by:
fetchNextRow
in classLazyResult
- Returns:
- next row or null
-
close
public void close()Description copied from interface:ResultInterface
Close the result and delete any temporary files- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResultInterface
- Overrides:
close
in classLazyResult
-
reset
public void reset()Description copied from interface:ResultInterface
Go to the beginning of the result, that means before the first row.- Specified by:
reset
in interfaceResultInterface
- Overrides:
reset
in classLazyResult
-