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