public interface QueryResult<T> extends Iterable<T>, AutoCloseable
A result can be obtained by executing a query using the following code:
 
 try (QueryResult<Tuple> result = query.getResult())
 {
        for (Tuple r : result)
        {
                ...
        }
 }
 
 
 A result object must always be closed after use, to release its resources. It is strongly suggested to enclose query results in a try-with-resources statement as it is shown in the code snippet above.
Note that this class is not thread-safe.
Query.getResult()| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| List<String> | getFieldNames()Returns the names of the fields in the result | 
| List<Class<?>> | getFieldTypes()Returns the types of the fields in the result | 
forEach, iterator, spliterator