public class RowList
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
RowList(Session session)
Construct a new row list for this session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Row r)
Add a row to the list.
|
void |
close()
Close the result list and delete the temporary file.
|
boolean |
hasNext()
Check if there are more rows in this list.
|
Row |
next()
Get the next row from the list.
|
void |
reset()
Remove all rows from the list.
|
int |
size()
Get the number of rows in this list.
|
public RowList(Session session)
session - the sessionpublic void add(Row r)
r - the row to addpublic void reset()
public boolean hasNext()
public Row next()
public int size()
public void close()
close in interface java.lang.AutoCloseable