public class SumQueryImpl extends AbstractComputeQuery<T> implements SumQuery
connectedComponent, degree| Constructor and Description |
|---|
SumQueryImpl(Optional<GraknGraph> graph) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Number> |
execute()
Execute the query.
|
SumQuery |
in(Collection<String> subTypeNames) |
SumQuery |
in(String... subTypeNames) |
boolean |
isReadOnly()
Whether this query will modify the graph
|
SumQuery |
of(Collection<String> resourceTypeNames) |
SumQuery |
of(String... resourceTypeNames) |
SumQuery |
withGraph(GraknGraph graph) |
resultsString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisReadOnly, resultsStringpublic SumQueryImpl(Optional<GraknGraph> graph)
public Optional<Number> execute()
SumQuerypublic SumQuery of(Collection<String> resourceTypeNames)
public SumQuery in(String... subTypeNames)
in in interface SumQueryin in interface ComputeQuery<Optional<Number>>in in class AbstractComputeQuery<Optional<Number>>subTypeNames - an array of types to include in the subgraphpublic SumQuery in(Collection<String> subTypeNames)
in in interface SumQueryin in interface ComputeQuery<Optional<Number>>in in class AbstractComputeQuery<Optional<Number>>subTypeNames - a collection of types to include in the subgraphpublic SumQuery withGraph(GraknGraph graph)
withGraph in interface SumQuerywithGraph in interface ComputeQuery<Optional<Number>>withGraph in interface Query<Optional<Number>>withGraph in class AbstractComputeQuery<Optional<Number>>graph - the graph to execute the compute query onpublic boolean isReadOnly()
QueryCopyright © 2016 Grakn Labs Ltd. All rights reserved.