public class ConceptMapImpl extends Object implements ConceptMap
Wrapper for a query result class ConceptMap.
| Constructor and Description |
|---|
ConceptMapImpl() |
ConceptMapImpl(Collection<Map.Entry<Var,Concept>> mappings,
Explanation exp) |
ConceptMapImpl(ConceptMap map) |
ConceptMapImpl(Map<Var,Concept> m) |
ConceptMapImpl(Map<Var,Concept> m,
Explanation exp) |
| Modifier and Type | Method and Description |
|---|---|
ConceptMap |
asConceptMap() |
Collection<Concept> |
concepts() |
boolean |
containsAll(ConceptMap map) |
boolean |
containsVar(Var var) |
boolean |
equals(Object obj) |
java.util.stream.Stream<ConceptMap> |
expandHierarchies(Set<Var> toExpand) |
ConceptMap |
explain(Explanation exp) |
Explanation |
explanation() |
void |
forEach(java.util.function.BiConsumer<Var,Concept> consumer) |
Concept |
get(String var) |
Concept |
get(Var var) |
int |
hashCode() |
boolean |
isEmpty() |
com.google.common.collect.ImmutableMap<Var,Concept> |
map() |
ConceptMap |
merge(ConceptMap a2) |
ConceptMap |
merge(ConceptMap map,
boolean mergeExplanation) |
ConceptMap |
project(Set<Var> vars) |
int |
size() |
Set<Atomic> |
toPredicates(ReasonerQuery parent) |
String |
toString() |
java.util.stream.Stream<ConceptMap> |
unify(MultiUnifier multiUnifier) |
ConceptMap |
unify(Unifier unifier) |
Set<Var> |
vars() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasAnswerGroup, asConceptList, asConceptSet, asConceptSetMeasure, asValue, explanationspublic ConceptMapImpl()
public ConceptMapImpl(ConceptMap map)
public ConceptMapImpl(Collection<Map.Entry<Var,Concept>> mappings, Explanation exp)
public ConceptMapImpl(Map<Var,Concept> m, Explanation exp)
public ConceptMap asConceptMap()
asConceptMap in interface Answer<ConceptMap>public Explanation explanation()
explanation in interface Answer<ConceptMap>public com.google.common.collect.ImmutableMap<Var,Concept> map()
map in interface ConceptMappublic Set<Var> vars()
vars in interface ConceptMappublic Collection<Concept> concepts()
concepts in interface ConceptMappublic Concept get(String var)
get in interface ConceptMappublic Concept get(Var var)
get in interface ConceptMappublic boolean containsVar(Var var)
containsVar in interface ConceptMappublic boolean containsAll(ConceptMap map)
containsAll in interface ConceptMappublic boolean isEmpty()
isEmpty in interface ConceptMappublic int size()
size in interface ConceptMappublic void forEach(java.util.function.BiConsumer<Var,Concept> consumer)
forEach in interface ConceptMappublic ConceptMap merge(ConceptMap map, boolean mergeExplanation)
merge in interface ConceptMappublic ConceptMap merge(ConceptMap a2)
merge in interface ConceptMappublic ConceptMap explain(Explanation exp)
explain in interface ConceptMappublic ConceptMap project(Set<Var> vars)
project in interface ConceptMappublic ConceptMap unify(Unifier unifier)
unify in interface ConceptMappublic java.util.stream.Stream<ConceptMap> unify(MultiUnifier multiUnifier)
unify in interface ConceptMappublic java.util.stream.Stream<ConceptMap> expandHierarchies(Set<Var> toExpand)
expandHierarchies in interface ConceptMappublic Set<Atomic> toPredicates(ReasonerQuery parent)
toPredicates in interface ConceptMapCopyright © 2018 Grakn Labs Ltd. All rights reserved.