ResultExternal
This interface is used to extend the LocalResult class, if data does not fit
in memory.
| Methods |
| int |
addRow(Value[] values)
Add a row to this object.
|
| int |
addRow(Value[] values)
Add a row to this object.
Parameters:
values - the row to add
Returns:
the new number of rows in this object
|
| int |
addRows(ArrayList rows)
Add a number of rows to the result.
|
| int |
addRows(ArrayList rows)
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
|
| void |
close()
Close this object and delete the temporary file.
|
| void |
close()
Close this object and delete the temporary file.
|
| boolean |
contains(Value[] values)
Check if the given row exists in this object.
|
| boolean |
contains(Value[] values)
Check if the given row exists in this object.
Parameters:
values - the row
Returns:
true if it exists
|
| ResultExternal |
createShallowCopy()
Create a shallow copy of this object if possible.
|
| ResultExternal |
createShallowCopy()
Create a shallow copy of this object if possible.
Returns:
the shallow copy, or null
|
| void |
done()
This method is called after all rows have been added.
|
| void |
done()
This method is called after all rows have been added.
|
| Value[] |
next()
Get the next row from the result.
|
| Value[] |
next()
Get the next row from the result.
Returns:
the next row or null
|
| int |
removeRow(Value[] values)
Remove the row with the given values from this object if such a row
exists.
|
| int |
removeRow(Value[] values)
Remove the row with the given values from this object if such a row
exists.
Parameters:
values - the row
Returns:
the new row count
|
| void |
reset()
Reset the current position of this object.
|
| void |
reset()
Reset the current position of this object.
|