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