Top Description Methods
org.h2.result

public Interface ResultExternal

Known Direct Implementers
org.h2.mvstore.db.MVTempResult
Imports
java.util.Collection, org.h2.value.Value

This interface is used to extend the LocalResult class, if data does not fit in memory.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the new number of rows in this object
addRow
(Value[]
the row to add
values
)

Add a row to this object.

public int

Returns:

the new number of rows in this object
addRows
(Collection<Value[]>
the list of rows to add
rows
)

Add a number of rows to the result.

public void
close()

Close this object and delete the temporary file.

public boolean

Returns:

true if it exists
contains
(Value[]
the row
values
)

Check if the given row exists in this object.

public ResultExternal

Returns:

the shallow copy, or null
createShallowCopy
()

Create a shallow copy of this object if possible.

public Value[]

Returns:

the next row or null
next
()

Get the next row from the result.

public int

Returns:

the new row count
removeRow
(Value[]
the row
values
)

Remove the row with the given values from this object if such a row exists.

public void
reset()

Reset the current position of this object.

Method Detail

addRowback to summary
public int addRow(Value[] values)

Add a row to this object.

Parameters
values:Value[]

the row to add

Returns:int

the new number of rows in this object

addRowsback to summary
public int addRows(Collection<Value[]> rows)

Add a number of rows to the result.

Parameters
rows:Collection<Value[]>

the list of rows to add

Returns:int

the new number of rows in this object

closeback to summary
public void close()

Close this object and delete the temporary file.

containsback to summary
public boolean contains(Value[] values)

Check if the given row exists in this object.

Parameters
values:Value[]

the row

Returns:boolean

true if it exists

createShallowCopyback to summary
public ResultExternal createShallowCopy()

Create a shallow copy of this object if possible.

Returns:ResultExternal

the shallow copy, or null

nextback to summary
public Value[] next()

Get the next row from the result.

Returns:Value[]

the next row or null

removeRowback to summary
public int removeRow(Value[] values)

Remove the row with the given values from this object if such a row exists.

Parameters
values:Value[]

the row

Returns:int

the new row count

resetback to summary
public void reset()

Reset the current position of this object.