public class MaxQueryImpl extends AbstractComputeQuery<T> implements MaxQuery
connectedComponent, degree| Constructor and Description |
|---|
MaxQueryImpl(Optional<GraknGraph> graph) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Number> |
execute()
Execute the query.
|
MaxQuery |
in(Collection<String> subTypeNames) |
MaxQuery |
in(String... subTypeNames) |
boolean |
isReadOnly()
Whether this query will modify the graph
|
MaxQuery |
of(Collection<String> resourceTypeNames) |
MaxQuery |
of(String... resourceTypeNames) |
MaxQuery |
withGraph(GraknGraph graph) |
resultsString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisReadOnly, resultsStringpublic MaxQueryImpl(Optional<GraknGraph> graph)
public Optional<Number> execute()
MaxQuerypublic MaxQuery of(Collection<String> resourceTypeNames)
public MaxQuery in(String... subTypeNames)
in in interface MaxQueryin in interface ComputeQuery<Optional<Number>>in in class AbstractComputeQuery<Optional<Number>>subTypeNames - an array of types to include in the subgraphpublic MaxQuery in(Collection<String> subTypeNames)
in in interface MaxQueryin in interface ComputeQuery<Optional<Number>>in in class AbstractComputeQuery<Optional<Number>>subTypeNames - a collection of types to include in the subgraphpublic MaxQuery withGraph(GraknGraph graph)
withGraph in interface MaxQuerywithGraph 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.