public interface LocalResult extends ResultInterface, ResultTarget
LocalResultFactory,
and it is also used directly by the ResultSet class in the embedded mode.
The memory usage and other policies are defined by implementation.| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDistinct(Value[] values)
Check if this result set contains the given row.
|
boolean |
containsNull()
Check if this result set contains a NULL value.
|
void |
done()
This method is called after all rows have been added.
|
void |
removeDistinct(Value[] values)
Remove the row from the result set if it exists.
|
void |
setDistinct()
Remove duplicate rows.
|
void |
setDistinct(int[] distinctIndexes)
Remove rows with duplicates in columns with specified indexes.
|
void |
setFetchPercent(boolean fetchPercent) |
void |
setLimit(int limit)
Set the number of rows that this result will return at the maximum.
|
void |
setMaxMemoryRows(int maxValue)
Redefine count of maximum rows holds in memory for the result.
|
void |
setOffset(int offset)
Set the offset of the first row to return.
|
void |
setSortOrder(SortOrder sort)
Sets sort order to be used by this result.
|
void |
setWithTies(SortOrder withTiesSortOrder)
Enables inclusion of tied rows to result and sets the sort order for tied
rows.
|
close, createShallowCopy, currentRow, getAlias, getColumnName, getColumnType, getFetchSize, getNullable, getRowCount, getRowId, getSchemaName, getTableName, getVisibleColumnCount, hasNext, isAfterLast, isAutoIncrement, isClosed, isLazy, needToClose, next, reset, setFetchSizeaddRow, getRowCount, limitsWereAppliedvoid setMaxMemoryRows(int maxValue)
maxValue - Maximum rows count in memory.SysProperties.MAX_MEMORY_ROWSvoid setSortOrder(SortOrder sort)
sort - the sort ordervoid setDistinct()
void setDistinct(int[] distinctIndexes)
distinctIndexes - distinct indexesboolean containsDistinct(Value[] values)
values - the rowboolean containsNull()
void removeDistinct(Value[] values)
values - the rowvoid done()
void setLimit(int limit)
limit - the limit (-1 means no limit, 0 means no rows)void setFetchPercent(boolean fetchPercent)
fetchPercent - whether limit expression specifies percentage of rowsvoid setWithTies(SortOrder withTiesSortOrder)
withTiesSortOrder - the sort order for tied rowsvoid setOffset(int offset)
offset - the offset