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) int
columnCount
(package private) ResultInterface
l
(package private) boolean
leftDone
(package private) ResultInterface
r
(package private) boolean
rightDone
-
Constructor Summary
Constructors Constructor Description LazyResultUnion(Expression[] expressions, int columnCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the result and delete any temporary filesprotected Value[]
fetchNextRow()
Fetch next row or null if none available.int
getVisibleColumnCount()
Get the number of visible columns.void
reset()
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:ResultInterface
Get 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: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 interfacejava.lang.AutoCloseable
- 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
-
-