public class DegreeQueryImpl<T> extends AbstractComputeQuery<T> implements DegreeQuery<T>
connectedComponent, degree| Constructor and Description |
|---|
DegreeQueryImpl(Optional<GraknGraph> graph) |
| Modifier and Type | Method and Description |
|---|---|
T |
execute() |
DegreeQuery<T> |
in(Collection<String> subTypeNames) |
DegreeQuery<T> |
in(String... subTypeNames) |
boolean |
isReadOnly()
Whether this query will modify the graph
|
DegreeQuery<String> |
persist()
Persist the result in the graph after executing the query.
|
DegreeQuery<T> |
withGraph(GraknGraph graph) |
resultsString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitresultsStringpublic DegreeQueryImpl(Optional<GraknGraph> graph)
public boolean isReadOnly()
QueryisReadOnly in interface Query<T>public DegreeQuery<String> persist()
DegreeQuerypersist in interface DegreeQuery<T>public DegreeQuery<T> in(String... subTypeNames)
in in interface DegreeQuery<T>in in interface ComputeQuery<T>in in class AbstractComputeQuery<T>subTypeNames - an array of types to include in the subgraphpublic DegreeQuery<T> in(Collection<String> subTypeNames)
in in interface DegreeQuery<T>in in interface ComputeQuery<T>in in class AbstractComputeQuery<T>subTypeNames - a collection of types to include in the subgraphpublic DegreeQuery<T> withGraph(GraknGraph graph)
withGraph in interface DegreeQuery<T>withGraph in interface ComputeQuery<T>withGraph in interface Query<T>withGraph in class AbstractComputeQuery<T>graph - the graph to execute the compute query onCopyright © 2016 Grakn Labs Ltd. All rights reserved.