public interface SnapshotResult extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
closes any resource associated with the snapshot result
|
List<Schema.Field> |
getFields()
Retrieves the fields describing the tuples that will be returned.
|
boolean |
hasNext()
See if there are more tuples to retrieve.
|
Tuple |
next()
Retrieves the next tuple in the result.
|
boolean hasNext() throws LiveViewException
LiveViewException
Tuple next() throws LiveViewException, NoSuchElementException
LiveViewException
- if exception occurs on the QueryNoSuchElementException
- if no more tuples exist to retrieveList<Schema.Field> getFields() throws LiveViewException
LiveViewException
- if exception occurs on the Queryvoid close()
close
in interface AutoCloseable
close
in interface Closeable