| Package | Description |
|---|---|
| ai.grakn.graql.internal.reasoner.cache | |
| ai.grakn.graql.internal.reasoner.utils |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Q,Pair<Q,T>> |
Cache.cache |
| Modifier and Type | Method and Description |
|---|---|
Pair<java.util.stream.Stream<Answer>,Unifier> |
QueryCache.getAnswerStreamWithUnifier(Q query) |
Pair<java.util.stream.Stream<Answer>,Unifier> |
LazyQueryCache.getAnswerStreamWithUnifier(Q query) |
abstract Pair<java.util.stream.Stream<Answer>,Unifier> |
Cache.getAnswerStreamWithUnifier(Q query) |
Pair<QueryAnswers,Unifier> |
QueryCache.getAnswersWithUnifier(Q query) |
Pair<LazyAnswerIterator,Unifier> |
LazyQueryCache.getAnswersWithUnifier(Q query) |
abstract Pair<T,Unifier> |
Cache.getAnswersWithUnifier(Q query) |
| Modifier and Type | Method and Description |
|---|---|
Map<Pair<Var,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query)
returns an inverse answer map with all query variables
|
Map<Pair<Var,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query,
Set<Var> vars)
return an inverse answer map which is more suitable for operations involving concept comparison (joins, filtering, etc.)
NB: consumes the underlying stream for the specified query
|
| Modifier and Type | Method and Description |
|---|---|
static Rule |
ReasonerUtils.createPropertyChainRule(RelationType relation,
Label fromRoleLabel,
Label toRoleLabel,
LinkedHashMap<RelationType,Pair<Label,Label>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.