public interface ClusterQuery<T> extends ComputeQuery<T>
| Modifier and Type | Method and Description |
|---|---|
ClusterQuery<T> |
clusterSize(long clusterSize) |
ClusterQuery<T> |
in(Collection<String> subTypeNames) |
ClusterQuery<T> |
in(String... subTypeNames) |
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> |
persist(String resourceTypeName)
Persist the result in the graph after executing the query.
|
ClusterQuery<T> |
withGraph(GraknGraph graph) |
execute, isReadOnly, resultsStringClusterQuery<Map<String,Set<String>>> members()
ClusterQuery<T> persist()
ClusterQuery<T> persist(String resourceTypeName)
resourceTypeName - the name of the resource type to save the cluster labelClusterQuery<T> clusterSize(long clusterSize)
clusterSize - the size of the clusters returned and/or persistedClusterQuery<T> in(String... subTypeNames)
in in interface ComputeQuery<T>subTypeNames - an array of types to include in the subgraphClusterQuery<T> in(Collection<String> subTypeNames)
in in interface ComputeQuery<T>subTypeNames - a collection of types to include in the subgraphClusterQuery<T> withGraph(GraknGraph graph)
Copyright © 2016 Grakn Labs Ltd. All rights reserved.