public final class CypherResultSet extends Object implements Iterable<Map<String,Object>>
In the case of most CypherGremlinClient
configurations,
instances of this class wrap a Gremlin ResultSet
iterator,
so this class is not thread-safe, by extension.
CypherGremlinClient
Modifier and Type | Method and Description |
---|---|
List<Map<String,Object>> |
all()
Waits for all query results to be received by the client and collects them in a list.
|
Iterator<Map<String,Object>> |
iterator()
Returns a blocking iterator of the items streaming from the server to the client.
|
Spliterator<Map<String,Object>> |
spliterator()
Creates a spliterator over query results.
|
Stream<Map<String,Object>> |
stream()
Returns a sequential stream of query results.
|
public List<Map<String,Object>> all()
public Spliterator<Map<String,Object>> spliterator()
spliterator
in interface Iterable<Map<String,Object>>
public Stream<Map<String,Object>> stream()