public class ResultTempTable extends Object implements ResultExternal
Modifier and Type | Method and Description |
---|---|
int |
addRow(Value[] values)
Add a row to this object.
|
int |
addRows(ArrayList<Value[]> rows)
Add a number of rows to the result.
|
void |
close()
Close this object and delete the temporary file.
|
boolean |
contains(Value[] values)
Check if the given row exists in this object.
|
ResultExternal |
createShallowCopy()
Create a shallow copy of this object if possible.
|
void |
done()
This method is called after all rows have been added.
|
Value[] |
next()
Get the next row from the result.
|
int |
removeRow(Value[] values)
Remove the row with the given values from this object if such a row
exists.
|
void |
reset()
Reset the current position of this object.
|
public ResultExternal createShallowCopy()
ResultExternal
createShallowCopy
in interface ResultExternal
public int removeRow(Value[] values)
ResultExternal
removeRow
in interface ResultExternal
values
- the rowpublic boolean contains(Value[] values)
ResultExternal
contains
in interface ResultExternal
values
- the rowpublic int addRow(Value[] values)
ResultExternal
addRow
in interface ResultExternal
values
- the row to addpublic int addRows(ArrayList<Value[]> rows)
ResultExternal
addRows
in interface ResultExternal
rows
- the list of rows to addpublic void close()
ResultExternal
close
in interface ResultExternal
public void done()
ResultExternal
done
in interface ResultExternal
public Value[] next()
ResultExternal
next
in interface ResultExternal
public void reset()
ResultExternal
reset
in interface ResultExternal
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.