public class QueryCursorImpl<T> extends Object implements QueryCursorEx<T>
QueryCursorEx.Consumer<T>| Constructor and Description |
|---|
QueryCursorImpl(Iterable<T> iterExec) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all resources related to this cursor.
|
List<GridQueryFieldMetadata> |
fieldsMeta() |
void |
fieldsMeta(List<GridQueryFieldMetadata> fieldsMeta) |
List<T> |
getAll()
Gets all query results and stores them in the collection.
|
void |
getAll(QueryCursorEx.Consumer<T> clo)
Get all values passing them through passed consumer.
|
Iterator<T> |
iterator() |
public List<T> getAll()
Since all the results will be fetched, all the resources will be closed
automatically after this call, e.g. there is no need to call QueryCursor.close() method in this case.
getAll in interface QueryCursor<T>public void getAll(QueryCursorEx.Consumer<T> clo) throws IgniteCheckedException
getAll in interface QueryCursorEx<T>clo - Consumer.IgniteCheckedExceptionpublic void close()
close in interface AutoCloseableclose in interface QueryCursor<T>public void fieldsMeta(List<GridQueryFieldMetadata> fieldsMeta)
fieldsMeta - SQL Fields query result metadata.public List<GridQueryFieldMetadata> fieldsMeta()
fieldsMeta in interface QueryCursorEx<T>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015