public class MatchQueryBase extends Object implements MatchQueryInternal
| Constructor and Description |
|---|
MatchQueryBase(Conjunction<PatternAdmin> pattern) |
| Modifier and Type | Method and Description |
|---|---|
Optional<GraknGraph> |
getGraph() |
Conjunction<PatternAdmin> |
getPattern() |
com.google.common.collect.ImmutableSet<String> |
getSelectedNames() |
Set<Type> |
getTypes() |
Set<Type> |
getTypes(GraknGraph graph) |
MatchQuery |
infer(boolean materialise) |
java.util.stream.Stream<Map<String,Concept>> |
stream(Optional<GraknGraph> optionalGraph)
Execute the query using the given graph.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregate, ask, colorKeyword, colorType, delete, delete, distinct, get, insert, isReadOnly, limit, offset, orderBy, resultsString, select, stream, withGraphadminiterator, parallelStreamforEach, spliteratorpublic MatchQueryBase(Conjunction<PatternAdmin> pattern)
pattern - a pattern to match in the graphpublic java.util.stream.Stream<Map<String,Concept>> stream(Optional<GraknGraph> optionalGraph)
MatchQueryInternalstream in interface MatchQueryInternaloptionalGraph - the graph to use to execute the querypublic Set<Type> getTypes(GraknGraph graph)
getTypes in interface MatchQueryAdmingraph - the graph to use to get types frompublic Set<Type> getTypes()
getTypes in interface MatchQueryAdminpublic com.google.common.collect.ImmutableSet<String> getSelectedNames()
getSelectedNames in interface MatchQueryAdminpublic Conjunction<PatternAdmin> getPattern()
getPattern in interface MatchQueryAdminpublic Optional<GraknGraph> getGraph()
getGraph in interface MatchQueryAdminpublic final MatchQuery infer(boolean materialise)
Copyright © 2016 Grakn Labs Ltd. All rights reserved.