public abstract class LazyResult extends FetchedResult
| Constructor and Description |
|---|
LazyResult(SessionLocal session,
Expression[] expressions) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the result and delete any temporary files
|
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.
|
TypeInfo |
getColumnType(int i)
Get the column data type.
|
int |
getFetchSize()
Get the current fetch size for this result set.
|
int |
getNullable(int i)
Check if this column is nullable.
|
long |
getRowCount()
Get the number of rows in this object.
|
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 |
isClosed()
Check if this result set is closed.
|
boolean |
isIdentity(int i)
Check if this is an identity column.
|
boolean |
isLazy()
Check if this a lazy execution result.
|
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(long limit) |
boolean |
skip()
Go to the next row and skip it.
|
protected boolean |
skipNextRow()
Skip next row.
|
createShallowCopy, currentRow, getRowId, isAfterLast, needToClose, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisibleColumnCountpublic LazyResult(SessionLocal session, Expression[] expressions)
public void setLimit(long limit)
public boolean isLazy()
ResultInterfacepublic void reset()
ResultInterfacepublic boolean skip()
public boolean hasNext()
ResultInterfaceprotected abstract Value[] fetchNextRow()
protected boolean skipNextRow()
public long getRowCount()
ResultInterfacepublic boolean isClosed()
ResultInterfacepublic void close()
ResultInterfacepublic java.lang.String getAlias(int i)
ResultInterfacei - the column number (starting with 0)public java.lang.String getSchemaName(int i)
ResultInterfacei - the column number (starting with 0)public java.lang.String getTableName(int i)
ResultInterfacei - the column number (starting with 0)public java.lang.String getColumnName(int i)
ResultInterfacei - the column number (starting with 0)public TypeInfo getColumnType(int i)
ResultInterfacei - the column number (starting with 0)public boolean isIdentity(int i)
ResultInterfacei - the column number (starting with 0)public int getNullable(int i)
ResultInterfacei - the column number (starting with 0)public void setFetchSize(int fetchSize)
ResultInterfacefetchSize - the new fetch sizepublic int getFetchSize()
ResultInterface