public class MatchBase extends Object
Match implementation that executes the gremlin traversal| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
MatchBase(Conjunction<PatternAdmin> pattern) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic MatchBase(Conjunction<PatternAdmin> pattern)
pattern - a pattern to match in the graphpublic java.util.stream.Stream<ConceptMap> stream(EmbeddedGraknTx<?> tx)
tx - the graph to use to execute the querypublic static java.util.stream.Stream<ConceptMap> streamWithTraversal(Set<Var> commonVars, EmbeddedGraknTx<?> tx, GraqlTraversal graqlTraversal)
commonVars - set of variables of interesttx - the graph to get results fromgraqlTraversal - gral traversal corresponding to the provided patternpublic Set<SchemaConcept> getSchemaConcepts(GraknTx tx)
public Set<SchemaConcept> getSchemaConcepts()
public Conjunction<PatternAdmin> getPattern()
public GraknTx tx()
public final Boolean inferring()
public final Match infer()
public final MatchAdmin admin()
public final java.util.stream.Stream<ConceptMap> stream()
public final <S extends Answer> AggregateQuery<S> aggregate(Aggregate<S> aggregate)
public final InsertQuery insert(VarPattern... vars)
public final InsertQuery insert(Collection<? extends VarPattern> vars)
public DeleteQuery delete()
public final DeleteQuery delete(String var, String... vars)
public final DeleteQuery delete(Var var, Var... vars)
public final DeleteQuery delete(Set<Var> vars)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.