public abstract class LazyResult extends java.lang.Object implements ResultInterface
| Constructor and Description |
|---|
LazyResult(Expression[] expressions) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the result and delete any temporary files
|
boolean |
containsDistinct(Value[] values)
Check if this result set contains the given row.
|
ResultInterface |
createShallowCopy(SessionInterface targetSession)
Create a shallow copy of the result set.
|
Value[] |
currentRow()
Get the current row.
|
protected abstract Value[] |
fetchNextRow()
Fetch next row or null if none available.
|
java.lang.String |
getAlias(int i)
Get the column alias name for the column.
|
java.lang.String |
getColumnName(int i)
Get the column name.
|
long |
getColumnPrecision(int i)
Get the precision for this column.
|
int |
getColumnScale(int i)
Get the scale for this column.
|
int |
getColumnType(int i)
Get the column data type.
|
int |
getDisplaySize(int i)
Get the display size for this column.
|
int |
getFetchSize()
Get the current fetch size for this result set.
|
int |
getNullable(int i)
Check if this column is nullable.
|
int |
getRowCount()
Get the number of rows in this object.
|
int |
getRowId()
Get the current row id, starting with 0.
|
java.lang.String |
getSchemaName(int i)
Get the schema name for the column, if one exists.
|
java.lang.String |
getTableName(int i)
Get the table name for the column, if one exists.
|
boolean |
hasNext()
Check if this result has more rows to fetch.
|
boolean |
isAfterLast()
Check if the current position is after last row.
|
boolean |
isAutoIncrement(int i)
Check if this is an auto-increment column.
|
boolean |
isClosed()
Check if this result set is closed.
|
boolean |
isLazy()
Check if this a lazy execution result.
|
boolean |
needToClose()
Check if this result set should be closed, for example because it is
buffered using a temporary file.
|
boolean |
next()
Go to the next row.
|
void |
reset()
Go to the beginning of the result, that means
before the first row.
|
void |
setFetchSize(int fetchSize)
Set the fetch size for this result set.
|
void |
setLimit(int limit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisibleColumnCountpublic LazyResult(Expression[] expressions)
public void setLimit(int limit)
public boolean isLazy()
ResultInterfaceisLazy in interface ResultInterfacepublic void reset()
ResultInterfacereset in interface ResultInterfacepublic Value[] currentRow()
ResultInterfacecurrentRow in interface ResultInterfacepublic boolean next()
ResultInterfacenext in interface ResultInterfacepublic boolean hasNext()
ResultInterfacehasNext in interface ResultInterfaceprotected abstract Value[] fetchNextRow()
public boolean isAfterLast()
ResultInterfaceisAfterLast in interface ResultInterfacepublic int getRowId()
ResultInterfacegetRowId in interface ResultInterfacepublic int getRowCount()
ResultInterfacegetRowCount in interface ResultInterfacepublic boolean needToClose()
ResultInterfaceneedToClose in interface ResultInterfacepublic boolean isClosed()
ResultInterfaceisClosed in interface ResultInterfacepublic void close()
ResultInterfaceclose in interface java.lang.AutoCloseableclose in interface ResultInterfacepublic java.lang.String getAlias(int i)
ResultInterfacegetAlias in interface ResultInterfacei - the column number (starting with 0)public java.lang.String getSchemaName(int i)
ResultInterfacegetSchemaName in interface ResultInterfacei - the column number (starting with 0)public java.lang.String getTableName(int i)
ResultInterfacegetTableName in interface ResultInterfacei - the column number (starting with 0)public java.lang.String getColumnName(int i)
ResultInterfacegetColumnName in interface ResultInterfacei - the column number (starting with 0)public int getColumnType(int i)
ResultInterfacegetColumnType in interface ResultInterfacei - the column number (starting with 0)public long getColumnPrecision(int i)
ResultInterfacegetColumnPrecision in interface ResultInterfacei - the column number (starting with 0)public int getColumnScale(int i)
ResultInterfacegetColumnScale in interface ResultInterfacei - the column number (starting with 0)public int getDisplaySize(int i)
ResultInterfacegetDisplaySize in interface ResultInterfacei - the column number (starting with 0)public boolean isAutoIncrement(int i)
ResultInterfaceisAutoIncrement in interface ResultInterfacei - the column number (starting with 0)public int getNullable(int i)
ResultInterfacegetNullable in interface ResultInterfacei - the column number (starting with 0)public void setFetchSize(int fetchSize)
ResultInterfacesetFetchSize in interface ResultInterfacefetchSize - the new fetch sizepublic int getFetchSize()
ResultInterfacegetFetchSize in interface ResultInterfacepublic ResultInterface createShallowCopy(SessionInterface targetSession)
ResultInterfacecreateShallowCopy in interface ResultInterfacetargetSession - the session of the copypublic boolean containsDistinct(Value[] values)
ResultInterfacecontainsDistinct in interface ResultInterfacevalues - the row