T - the type of result this query will returnpublic interface ClusterQuery<T> extends ComputeQuery<T>
| Modifier and Type | Method and Description |
|---|---|
ClusterQuery<T> |
clusterSize(long clusterSize) |
ClusterQuery<T> |
in(Collection<Label> subLabels) |
ClusterQuery<T> |
in(String... subTypeLabels) |
ClusterQuery<Map<String,Set<String>>> |
members()
Return the instances in each cluster after executing the query.
|
ClusterQuery<T> |
withGraph(GraknGraph graph) |
killexecute, isReadOnly, resultsStringClusterQuery<Map<String,Set<String>>> members()
ClusterQuery<T> clusterSize(long clusterSize)
clusterSize - the size of the clusters returned and/or persistedClusterQuery<T> in(String... subTypeLabels)
in in interface ComputeQuery<T>subTypeLabels - an array of types to include in the subgraphClusterQuery<T> in(Collection<Label> subLabels)
in in interface ComputeQuery<T>subLabels - a collection of types to include in the subgraphClusterQuery<T> withGraph(GraknGraph graph)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.