use of ai.grakn.graql.internal.query.match.MatchBase in project grakn by graknlabs.
the class QueryBuilderImpl method match.
/**
* @param patterns a collection of patterns to match in the knowledge base
* @return a {@link Match} that will find matches of the given patterns
*/
@Override
public Match match(Collection<? extends Pattern> patterns) {
Conjunction<PatternAdmin> conjunction = Patterns.conjunction(Sets.newHashSet(AdminConverter.getPatternAdmins(patterns)));
MatchBase base = new MatchBase(conjunction);
Match match = infer ? base.infer(materialise).admin() : base;
return tx.map(match::withTx).orElse(match);
}
Aggregations