Package org.h2.result
Interface ResultExternal
- All Known Implementing Classes:
MVPlainTempResult
,MVSortedTempResult
,MVTempResult
public interface ResultExternal
This interface is used to extend the LocalResult class, if data does not fit
in memory.
-
Method Summary
Modifier and TypeMethodDescriptionint
Add a row to this object.int
addRows
(Collection<Value[]> rows) Add a number of rows to the result.void
close()
Close this object and delete the temporary file.boolean
Check if the given row exists in this object.Create a shallow copy of this object if possible.Value[]
next()
Get the next row from the result.int
Remove the row with the given values from this object if such a row exists.void
reset()
Reset the current position of this object.
-
Method Details
-
reset
void reset()Reset the current position of this object. -
next
Value[] next()Get the next row from the result.- Returns:
- the next row or null
-
addRow
Add a row to this object.- Parameters:
values
- the row to add- Returns:
- the new number of rows in this object
-
addRows
Add a number of rows to the result.- Parameters:
rows
- the list of rows to add- Returns:
- the new number of rows in this object
-
close
void close()Close this object and delete the temporary file. -
removeRow
Remove the row with the given values from this object if such a row exists.- Parameters:
values
- the row- Returns:
- the new row count
-
contains
Check if the given row exists in this object.- Parameters:
values
- the row- Returns:
- true if it exists
-
createShallowCopy
ResultExternal createShallowCopy()Create a shallow copy of this object if possible.- Returns:
- the shallow copy, or null
-