| Package | Description |
|---|---|
| ai.grakn.graql |
A collection of interfaces and factories for executing Graql queries.
|
| ai.grakn.graql.admin |
A collection of interfaces offering more behaviour on Graql objects.
|
| ai.grakn.graql.internal.gremlin | |
| ai.grakn.graql.internal.gremlin.fragment | |
| ai.grakn.graql.internal.gremlin.sets | |
| ai.grakn.graql.internal.pattern | |
| ai.grakn.graql.internal.pattern.property | |
| ai.grakn.graql.internal.query | |
| ai.grakn.graql.internal.query.aggregate | |
| ai.grakn.graql.internal.query.match | |
| ai.grakn.graql.internal.reasoner | |
| ai.grakn.graql.internal.reasoner.atom | |
| ai.grakn.graql.internal.reasoner.atom.binary | |
| ai.grakn.graql.internal.reasoner.atom.predicate | |
| ai.grakn.graql.internal.reasoner.atom.property | |
| ai.grakn.graql.internal.reasoner.cache | |
| ai.grakn.graql.internal.reasoner.query | |
| ai.grakn.graql.internal.util |
| Modifier and Type | Method and Description |
|---|---|
static VarName |
VarName.anon() |
VarName |
VarName.map(java.util.function.Function<String,String> mapper)
Rename a variable (does not modify the original
VarName) |
static VarName |
VarName.of(String value) |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Graql.group(String varName)
Create an aggregate that will group a query by a variable name.
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Graql.group(String varName)
Create an aggregate that will group a query by a variable name.
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<VarName,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name and apply the given aggregate to each group
|
static <T extends Comparable<T>> |
Graql.max(String name)
Create an aggregate that will find the maximum of a variable's values.
|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Graql.mean(String name)
Create an aggregate that will find the mean of a variable's values.
|
static Aggregate<Map<VarName,Concept>,Optional<Number>> |
Graql.median(String name)
Create an aggregate that will find the median of a variable's values.
|
static <T extends Comparable<T>> |
Graql.min(String name)
Create an aggregate that will find the minimum of a variable's values.
|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Graql.std(String name)
Create an aggregate that will find the unbiased sample standard deviation of a variable's values.
|
static Aggregate<Map<VarName,Concept>,Number> |
Graql.sum(String name)
Create an aggregate that will sum the values of a variable.
|
| Modifier and Type | Method and Description |
|---|---|
MatchQuery |
MatchQuery.orderBy(VarName varName)
Order the results by degree in ascending order
|
MatchQuery |
MatchQuery.orderBy(VarName varName,
Order order)
Order the results by degree
|
static Var |
Graql.var(VarName name) |
| Modifier and Type | Method and Description |
|---|---|
<S> AggregateQuery<S> |
MatchQuery.aggregate(Aggregate<? super Map<VarName,Concept>,S> aggregate)
Aggregate results of a query.
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<VarName,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name and apply the given aggregate to each group
|
MatchQuery |
MatchQuery.select(Set<VarName> names) |
| Modifier and Type | Method and Description |
|---|---|
VarName |
Unifier.addMapping(VarName key,
VarName value)
add a new mapping
|
VarName |
Unifier.get(VarName key) |
VarName |
VarAdmin.getVarName() |
VarName |
Atomic.getVarName() |
| Modifier and Type | Method and Description |
|---|---|
VarName |
Unifier.addMapping(VarName key,
VarName value)
add a new mapping
|
boolean |
Unifier.containsKey(VarName key) |
boolean |
Answer.containsKey(VarName var) |
boolean |
Unifier.containsValue(VarName value) |
default boolean |
Atomic.containsVar(VarName name) |
VarName |
Unifier.get(VarName key) |
Concept |
Answer.get(VarName var) |
Concept |
Answer.put(VarName var,
Concept con) |
Concept |
Answer.remove(VarName var) |
VarAdmin |
VarAdmin.setVarName(VarName name) |
void |
ReasonerQuery.unify(VarName from,
VarName to)
change each variable occurrence in the query (apply unifier [from/to])
|
| Modifier and Type | Method and Description |
|---|---|
Answer |
Answer.filterVars(Set<VarName> vars) |
void |
Answer.putAll(Map<VarName,Concept> m2) |
| Modifier and Type | Method and Description |
|---|---|
void |
ShortcutTraversal.addRel(TypeLabel roletype,
VarName roleplayer) |
void |
ShortcutTraversal.addRel(VarName roleplayer) |
| Modifier and Type | Method and Description |
|---|---|
VarName |
Fragment.getStart() |
| Modifier and Type | Method and Description |
|---|---|
Set<VarName> |
Fragment.getDependencies() |
Optional<VarName> |
Fragment.getEnd() |
Set<VarName> |
Fragment.getVariableNames()
Get all variable names in the fragment - the start and end (if present)
|
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.dataType(VarName start,
ResourceType.DataType dataType) |
static Fragment |
Fragments.distinctCasting(VarName start,
VarName otherCastingName) |
static Fragment |
Fragments.id(VarName start,
ConceptId id) |
static Fragment |
Fragments.inCasting(VarName start,
VarName end) |
static Fragment |
Fragments.inHasScope(VarName start,
VarName end) |
static Fragment |
Fragments.inIsa(VarName start,
VarName end) |
static Fragment |
Fragments.inIsaCastings(VarName start,
VarName end) |
static Fragment |
Fragments.inPlays(VarName start,
VarName end,
boolean required) |
static ai.grakn.graql.internal.gremlin.fragment.InRelatesFragment |
Fragments.inRelates(VarName start,
VarName end) |
static Fragment |
Fragments.inRolePlayer(VarName start,
VarName end) |
static Fragment |
Fragments.inSub(VarName start,
VarName end) |
static Fragment |
Fragments.isAbstract(VarName start) |
static Fragment |
Fragments.label(VarName start,
TypeLabel label) |
static Fragment |
Fragments.neq(VarName start,
VarName other) |
static Fragment |
Fragments.notCasting(VarName start) |
static Fragment |
Fragments.outCasting(VarName start,
VarName end) |
static Fragment |
Fragments.outHasScope(VarName start,
VarName end) |
static Fragment |
Fragments.outIsa(VarName start,
VarName end) |
static Fragment |
Fragments.outIsaCastings(VarName start,
VarName end) |
static Fragment |
Fragments.outPlays(VarName start,
VarName end,
boolean required) |
static Fragment |
Fragments.outRelates(VarName start,
VarName end) |
static Fragment |
Fragments.outRolePlayer(VarName start,
VarName end) |
static Fragment |
Fragments.outSub(VarName start,
VarName end) |
static Fragment |
Fragments.regex(VarName start,
String regex) |
static Fragment |
Fragments.resourceIndex(VarName start,
TypeLabel typeLabel,
Object resourceValue)
A
Fragment that uses an index stored on each resource. |
static Fragment |
Fragments.shortcut(Optional<TypeLabel> relationType,
Optional<TypeLabel> roleStart,
Optional<TypeLabel> roleEnd,
VarName start,
VarName end) |
static Fragment |
Fragments.value(VarName start) |
static Fragment |
Fragments.value(VarName start,
ValuePredicateAdmin predicate) |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
EquivalentFragmentSets.casting(VarName relation,
VarName casting)
An
EquivalentFragmentSet that indicates a variable is a relation with a casting. |
static EquivalentFragmentSet |
EquivalentFragmentSets.dataType(VarName resourceType,
ResourceType.DataType<?> dataType)
An
EquivalentFragmentSet that indicates a variable representing a resource type with a data-type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.distinctCasting(VarName castingA,
VarName castingB)
An
EquivalentFragmentSet that indicates two castings are unique |
static EquivalentFragmentSet |
EquivalentFragmentSets.hasScope(VarName relation,
VarName scope)
An
EquivalentFragmentSet that indicates a variable is a relation with a scope. |
static EquivalentFragmentSet |
EquivalentFragmentSets.id(VarName start,
ConceptId id)
An
EquivalentFragmentSet that indicates a variable representing a concept with a particular ID. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isa(VarName instance,
VarName type)
An
EquivalentFragmentSet that indicates a variable is an instance of a type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isAbstract(VarName start)
An
EquivalentFragmentSet that indicates a variable represents an abstract type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.isaCastings(VarName casting,
VarName roleType)
An
EquivalentFragmentSet that indicates a variable is an instance of a role-type. |
static EquivalentFragmentSet |
EquivalentFragmentSets.label(VarName type,
TypeLabel label)
An
EquivalentFragmentSet that indicates a variable representing a type with a particular label. |
static EquivalentFragmentSet |
EquivalentFragmentSets.neq(VarName varA,
VarName varB)
An
EquivalentFragmentSet that indicates a variable is not equal to another variable. |
static EquivalentFragmentSet |
EquivalentFragmentSets.notCasting(VarName start)
An
EquivalentFragmentSet that indicates a variable is not a casting. |
static EquivalentFragmentSet |
EquivalentFragmentSets.plays(VarName type,
VarName roleType,
boolean required)
An
EquivalentFragmentSet that indicates a variable is a type whose instances play a role. |
static EquivalentFragmentSet |
EquivalentFragmentSets.regex(VarName resourceType,
String regex)
An
EquivalentFragmentSet that indicates a resource type whose instances must conform to a given regex. |
static EquivalentFragmentSet |
EquivalentFragmentSets.relates(VarName relationType,
VarName roleType)
An
EquivalentFragmentSet that indicates a variable is a relation type which involves a role. |
static EquivalentFragmentSet |
EquivalentFragmentSets.rolePlayer(VarName casting,
VarName rolePlayer)
An
EquivalentFragmentSet that indicates a variable is a casting connected to a role-player. |
static EquivalentFragmentSet |
EquivalentFragmentSets.shortcut(Optional<TypeLabel> roleTypeA,
VarName rolePlayerA,
Optional<TypeLabel> roleTypeB,
VarName rolePlayerB,
Optional<TypeLabel> relationType)
An
EquivalentFragmentSet that indicates a shortcut edge between two role-players. |
static EquivalentFragmentSet |
EquivalentFragmentSets.sub(VarName subType,
VarName superType)
An
EquivalentFragmentSet that indicates a variable is a sub-type of another variable. |
static EquivalentFragmentSet |
EquivalentFragmentSets.value(VarName resource,
ValuePredicateAdmin predicate)
An
EquivalentFragmentSet that indicates a variable represents a resource with value matching a predicate. |
| Modifier and Type | Method and Description |
|---|---|
static VarAdmin |
Patterns.var(VarName name) |
| Modifier and Type | Method and Description |
|---|---|
static <T> AggregateQuery<T> |
Queries.aggregate(MatchQueryAdmin matchQuery,
Aggregate<? super Map<VarName,Concept>,T> aggregate) |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Aggregates.group(VarName varName)
Aggregate that groups results of a match query by variable name
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Aggregates.group(VarName varName)
Aggregate that groups results of a match query by variable name
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Aggregates.group(VarName varName,
Aggregate<? super Map<VarName,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
static <T extends Comparable<T>> |
Aggregates.max(VarName varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Aggregates.mean(VarName varName)
Aggregate that finds mean of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Number>> |
Aggregates.median(VarName varName)
Aggregate that finds median of a match query.
|
static <T extends Comparable<T>> |
Aggregates.min(VarName varName)
Aggregate that finds minimum of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Aggregates.std(VarName varName)
Aggregate that finds the unbiased sample standard deviation of a match query
|
static Aggregate<Map<VarName,Concept>,Number> |
Aggregates.sum(VarName varName)
Aggregate that sums results of a match query.
|
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Aggregates.group(VarName varName)
Aggregate that groups results of a match query by variable name
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Aggregates.group(VarName varName,
Aggregate<? super Map<VarName,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
static <T extends Comparable<T>> |
Aggregates.max(VarName varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Aggregates.mean(VarName varName)
Aggregate that finds mean of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Number>> |
Aggregates.median(VarName varName)
Aggregate that finds median of a match query.
|
static <T extends Comparable<T>> |
Aggregates.min(VarName varName)
Aggregate that finds minimum of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Aggregates.std(VarName varName)
Aggregate that finds the unbiased sample standard deviation of a match query
|
static Aggregate<Map<VarName,Concept>,Number> |
Aggregates.sum(VarName varName)
Aggregate that sums results of a match query.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Aggregates.group(VarName varName,
Aggregate<? super Map<VarName,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
| Modifier and Type | Method and Description |
|---|---|
VarName |
MatchOrder.getVar() |
| Modifier and Type | Method and Description |
|---|---|
Set<VarName> |
MatchQueryBase.getSelectedNames() |
| Modifier and Type | Method and Description |
|---|---|
static VarName |
Utility.capture(VarName var)
Capture a variable name, by prepending a constant to the name
|
static VarName |
Utility.uncapture(VarName var)
Uncapture a variable name, by removing a prepended constant
|
| Modifier and Type | Method and Description |
|---|---|
static VarName |
Utility.capture(VarName var)
Capture a variable name, by prepending a constant to the name
|
static IdPredicate |
Utility.getIdPredicate(VarName typeVariable,
VarAdmin typeVar,
Set<VarAdmin> vars,
ReasonerQuery parent)
looks for an appropriate var property with a specified name among the vars and maps it to an IdPredicate,
covers both the cases when variable is and isn't user defined
|
static IdPredicate |
Utility.getUserDefinedIdPredicate(VarName typeVariable,
Set<VarAdmin> vars,
ReasonerQuery parent)
looks for an appropriate var property with a specified name among the vars and maps it to an IdPredicate,
covers the case when specified variable name is user defined
|
static Set<Predicate> |
Utility.getValuePredicates(VarName valueVariable,
VarAdmin valueVar,
Set<VarAdmin> vars,
ReasonerQuery parent)
looks for appropriate var properties with a specified name among the vars and maps them to ValuePredicates,
covers both the case when variable is and isn't user defined
|
static boolean |
Utility.isCaptured(VarName var)
Check if a variable has been captured
|
static VarName |
Utility.uncapture(VarName var)
Uncapture a variable name, by removing a prepended constant
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Utility.computeRoleCombinations(Set<VarName> vars,
Set<RoleType> roles,
Map<VarName,Var> roleMap,
Set<Map<VarName,Var>> roleMaps)
compute all rolePlayer-roleType combinations complementing provided roleMap
|
static void |
Utility.computeRoleCombinations(Set<VarName> vars,
Set<RoleType> roles,
Map<VarName,Var> roleMap,
Set<Map<VarName,Var>> roleMaps)
compute all rolePlayer-roleType combinations complementing provided roleMap
|
static void |
Utility.computeRoleCombinations(Set<VarName> vars,
Set<RoleType> roles,
Map<VarName,Var> roleMap,
Set<Map<VarName,Var>> roleMaps)
compute all rolePlayer-roleType combinations complementing provided roleMap
|
static Set<Unifier> |
Utility.getUnifiersFromPermutations(List<VarName> originalVars,
List<List<VarName>> permutations)
get unifiers by comparing permutations with original variables
|
static Set<Unifier> |
Utility.getUnifiersFromPermutations(List<VarName> originalVars,
List<List<VarName>> permutations)
get unifiers by comparing permutations with original variables
|
| Modifier and Type | Field and Description |
|---|---|
protected VarName |
AtomBase.varName |
| Modifier and Type | Method and Description |
|---|---|
VarName |
NotEquals.getReferenceVarName() |
VarName |
Atom.getValueVariable() |
VarName |
AtomBase.getVarName() |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Atom.getRoleVarTypeMap() |
Set<VarName> |
AtomBase.getVarNames() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AtomBase.containsVar(VarName name) |
| Constructor and Description |
|---|
NotEquals(VarName varName,
NeqProperty prop,
ReasonerQuery parent) |
| Modifier and Type | Method and Description |
|---|---|
protected VarName |
TypeAtom.extractValueVariableName(VarAdmin var) |
protected VarName |
Resource.extractValueVariableName(VarAdmin var) |
protected VarName |
Relation.extractValueVariableName(VarAdmin var) |
protected abstract VarName |
BinaryBase.extractValueVariableName(VarAdmin var) |
VarName |
BinaryBase.getValueVariable() |
| Modifier and Type | Method and Description |
|---|---|
Set<VarName> |
Relation.getRolePlayers() |
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Relation.getRoleVarTypeMap() |
Set<VarName> |
Relation.getUnmappedRolePlayers() |
Set<VarName> |
Relation.getVarNames() |
Set<VarName> |
BinaryBase.getVarNames() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Relation.containsVar(VarName name) |
protected void |
TypeAtom.setValueVariable(VarName var) |
protected void |
Resource.setValueVariable(VarName var) |
protected void |
Relation.setValueVariable(VarName var) |
protected void |
BinaryBase.setValueVariable(VarName var) |
| Constructor and Description |
|---|
Relation(VarName name,
VarName typeVariable,
Map<VarName,Var> roleMap,
IdPredicate pred,
ReasonerQuery par) |
| Constructor and Description |
|---|
Relation(VarName name,
VarName typeVariable,
Map<VarName,Var> roleMap,
IdPredicate pred,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
Set<VarName> |
ValuePredicate.getVarNames() |
| Modifier and Type | Method and Description |
|---|---|
static VarAdmin |
IdPredicate.createIdVar(VarName varName,
ConceptId typeId) |
static VarAdmin |
ValuePredicate.createValueVar(VarName name,
ValuePredicateAdmin pred) |
| Constructor and Description |
|---|
IdPredicate(VarName varName,
Concept con,
ReasonerQuery par) |
IdPredicate(VarName varName,
IdProperty prop,
ReasonerQuery par) |
IdPredicate(VarName varName,
LabelProperty prop,
ReasonerQuery par) |
ValuePredicate(VarName varName,
ValuePredicateAdmin pred,
ReasonerQuery par) |
| Constructor and Description |
|---|
DataTypeAtom(VarName varName,
DataTypeProperty prop,
ReasonerQuery parent) |
IsAbstractAtom(VarName varName,
ReasonerQuery parent) |
RegexAtom(VarName varName,
RegexProperty prop,
ReasonerQuery parent) |
| Modifier and Type | Method and Description |
|---|---|
Map<javafx.util.Pair<VarName,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query)
returns an inverse answer map with all query variables
|
Map<javafx.util.Pair<VarName,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query,
Set<VarName> 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 |
|---|---|
Map<javafx.util.Pair<VarName,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query,
Set<VarName> 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 | Field and Description |
|---|---|
static java.util.function.BiFunction<Answer,Set<VarName>,java.util.stream.Stream<Answer>> |
QueryAnswerStream.varFilterFunction |
| Modifier and Type | Method and Description |
|---|---|
VarName |
UnifierImpl.addMapping(VarName key,
VarName value) |
VarName |
UnifierImpl.get(VarName key) |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<VarName,Concept>> |
QueryAnswer.entrySet() |
Set<Map.Entry<VarName,VarName>> |
UnifierImpl.getMappings() |
Set<Map.Entry<VarName,VarName>> |
UnifierImpl.getMappings() |
Set<VarName> |
ReasonerQueryImpl.getVarNames() |
Map<VarName,Type> |
ReasonerQueryImpl.getVarTypeMap() |
Set<VarName> |
UnifierImpl.keySet() |
Set<VarName> |
QueryAnswer.keySet() |
Map<VarName,VarName> |
UnifierImpl.map() |
Map<VarName,VarName> |
UnifierImpl.map() |
Map<VarName,Concept> |
QueryAnswer.map() |
Collection<VarName> |
UnifierImpl.values() |
| Modifier and Type | Method and Description |
|---|---|
VarName |
UnifierImpl.addMapping(VarName key,
VarName value) |
boolean |
UnifierImpl.containsKey(VarName key) |
boolean |
QueryAnswer.containsKey(VarName var) |
boolean |
UnifierImpl.containsValue(VarName value) |
VarName |
UnifierImpl.get(VarName key) |
Concept |
QueryAnswer.get(VarName var) |
IdPredicate |
ReasonerQueryImpl.getIdPredicate(VarName var) |
Concept |
QueryAnswer.put(VarName var,
Concept con) |
Concept |
QueryAnswer.remove(VarName var) |
void |
ReasonerQueryImpl.unify(VarName from,
VarName to)
change each variable occurrence in the query (apply unifier [from/to])
|
| Modifier and Type | Method and Description |
|---|---|
QueryAnswers |
QueryAnswers.filterVars(Set<VarName> vars)
filter answers by constraining the variable set to the provided one
|
QueryAnswer |
QueryAnswer.filterVars(Set<VarName> vars) |
static java.util.stream.Stream<Answer> |
QueryAnswerStream.join(java.util.stream.Stream<Answer> stream,
java.util.stream.Stream<Answer> stream2,
com.google.common.collect.ImmutableSet<VarName> joinVars,
boolean explanation)
lazy stream join with quasi- sideways information propagation
|
static java.util.stream.Stream<Answer> |
QueryAnswerStream.joinWithInverse(java.util.stream.Stream<Answer> stream,
java.util.stream.Stream<Answer> stream2,
Map<javafx.util.Pair<VarName,Concept>,Set<Answer>> stream2InverseMap,
com.google.common.collect.ImmutableSet<VarName> joinVars,
boolean explanation)
lazy stream join with fast lookup from inverse answer map
|
static java.util.stream.Stream<Answer> |
QueryAnswerStream.joinWithInverse(java.util.stream.Stream<Answer> stream,
java.util.stream.Stream<Answer> stream2,
Map<javafx.util.Pair<VarName,Concept>,Set<Answer>> stream2InverseMap,
com.google.common.collect.ImmutableSet<VarName> joinVars,
boolean explanation)
lazy stream join with fast lookup from inverse answer map
|
void |
QueryAnswer.putAll(Map<VarName,Concept> m2) |
| Constructor and Description |
|---|
QueryAnswer(Map<VarName,Concept> m) |
UnifierImpl(Map<VarName,VarName> map) |
UnifierImpl(Map<VarName,VarName> map) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Concept> |
CommonUtil.resultVarNameToString(Map<VarName,Concept> result) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.