| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
MatchQueryBase(Conjunction<PatternAdmin> pattern) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waititerator, parallelStreamforEach, spliteratorpublic MatchQueryBase(Conjunction<PatternAdmin> pattern)
pattern - a pattern to match in the graphpublic java.util.stream.Stream<Map<VarName,Concept>> stream(Optional<GraknGraph> optionalGraph)
optionalGraph - the graph to use to execute the querypublic Set<Type> getTypes(GraknGraph graph)
graph - the graph to use to get types frompublic com.google.common.collect.ImmutableSet<VarName> getSelectedNames()
public Conjunction<PatternAdmin> getPattern()
public Optional<GraknGraph> getGraph()
public final MatchQuery infer(boolean materialise)
public final java.util.stream.Stream<String> resultsString(Printer printer)
Querypublic final boolean isReadOnly()
Querypublic final MatchQueryAdmin admin()
admin in interface MatchQueryAdminadmin in interface MatchQuerypublic final List<Map<VarName,Concept>> results()
results in interface MatchQueryAdminpublic final java.util.stream.Stream<Map<VarName,Concept>> streamWithVarNames()
streamWithVarNames in interface MatchQueryAdminpublic final java.util.stream.Stream<Map<String,Concept>> stream()
stream in interface Streamable<Map<String,Concept>>public final MatchQuery withGraph(GraknGraph graph)
public final MatchQuery limit(long limit)
limit in interface MatchQuerylimit - the maximum number of results the query should returnpublic final MatchQuery offset(long offset)
offset in interface MatchQueryoffset - the number of results to skippublic final MatchQuery distinct()
MatchQuerydistinct in interface MatchQuerypublic final <S> AggregateQuery<S> aggregate(Aggregate<? super Map<VarName,Concept>,S> aggregate)
MatchQueryaggregate in interface MatchQueryS - the type of the aggregate resultaggregate - the aggregate operation to applypublic final MatchQuery select(String... names)
select in interface MatchQuerynames - an array of variable names to selectpublic final MatchQuery select(Set<VarName> names)
select in interface MatchQuerynames - a set of variable names to selectpublic final java.util.stream.Stream<Concept> get(String name)
get in interface MatchQueryname - a variable name to getpublic final AskQuery ask()
ask in interface MatchQuerypublic final InsertQuery insert(Var... vars)
insert in interface MatchQueryvars - an array of variables to insert for each result of this match querypublic final InsertQuery insert(Collection<? extends Var> vars)
insert in interface MatchQueryvars - a collection of variables to insert for each result of this match querypublic final DeleteQuery delete(Var... deleters)
delete in interface MatchQuerydeleters - an array of variables stating what properties to delete for each result of this match querypublic final DeleteQuery delete(String... names)
delete in interface MatchQuerynames - an array of variable names to delete for each result of this match querypublic final DeleteQuery delete(Collection<? extends Var> deleters)
delete in interface MatchQuerydeleters - a collection of variables stating what properties to delete for each result of this match querypublic final MatchQuery orderBy(String varName)
MatchQueryorderBy in interface MatchQueryvarName - the variable name to order the results bypublic final MatchQuery orderBy(VarName varName)
MatchQueryorderBy in interface MatchQueryvarName - the variable name to order the results bypublic final MatchQuery orderBy(String varName, Order order)
MatchQueryorderBy in interface MatchQueryvarName - the variable name to order the results byorder - the ordering to usepublic final MatchQuery orderBy(VarName varName, Order order)
MatchQueryorderBy in interface MatchQueryvarName - the variable name to order the results byorder - the ordering to useCopyright © 2017 Grakn Labs Ltd. All rights reserved.