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