public class ClusterQueryImpl<T> extends AbstractComputeQuery<T> implements ClusterQuery<T>
connectedComponent, degree| Constructor and Description |
|---|
ClusterQueryImpl(Optional<GraknGraph> graph) |
| Modifier and Type | Method and Description |
|---|---|
T |
execute() |
ClusterQuery<T> |
in(Collection<String> subTypeNames) |
ClusterQuery<T> |
in(String... subTypeNames) |
boolean |
isReadOnly()
Whether this query will modify the graph
|
ClusterQuery<Map<String,Set<String>>> |
members()
Return the instances in each cluster after executing the query.
|
ClusterQuery<T> |
persist()
Persist the result in the graph after executing the query.
|
ClusterQuery<T> |
withGraph(GraknGraph graph) |
resultsString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitresultsStringpublic ClusterQueryImpl(Optional<GraknGraph> graph)
public boolean isReadOnly()
QueryisReadOnly in interface Query<T>public ClusterQuery<Map<String,Set<String>>> members()
ClusterQuerymembers in interface ClusterQuery<T>public ClusterQuery<T> persist()
ClusterQuerypersist in interface ClusterQuery<T>public ClusterQuery<T> in(String... subTypeNames)
in in interface ClusterQuery<T>in in interface ComputeQuery<T>in in class AbstractComputeQuery<T>subTypeNames - an array of types to include in the subgraphpublic ClusterQuery<T> in(Collection<String> subTypeNames)
in in interface ClusterQuery<T>in in interface ComputeQuery<T>in in class AbstractComputeQuery<T>subTypeNames - a collection of types to include in the subgraphpublic ClusterQuery<T> withGraph(GraknGraph graph)
withGraph in interface ClusterQuery<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.