T - The result type after executing the querypublic interface Query<T>
| Modifier and Type | Method and Description |
|---|---|
T |
execute()
Execute the query against the graph (potentially writing to the graph) and return a result
|
boolean |
isReadOnly()
Whether this query will modify the graph
|
java.util.stream.Stream<String> |
resultsString(Printer printer)
Execute the query and return a human-readable stream of results
|
Query<T> |
withGraph(GraknGraph graph) |
@CheckReturnValue Query<T> withGraph(GraknGraph graph)
graph - the graph to execute the query onT execute()
@CheckReturnValue java.util.stream.Stream<String> resultsString(Printer printer)
@CheckReturnValue boolean isReadOnly()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.