public class QueryAnswers extends Object implements Iterable<ConceptMap>
Wrapper class for a set of ConceptMap objects providing higher level facilities.
| Constructor and Description |
|---|
QueryAnswers() |
QueryAnswers(Collection<ConceptMap> ans) |
QueryAnswers(ConceptMap ans) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConceptMap a) |
boolean |
addAll(QueryAnswers ans) |
boolean |
contains(ConceptMap a) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<ConceptMap> |
iterator() |
boolean |
removeAll(QueryAnswers ans) |
java.util.stream.Stream<ConceptMap> |
stream() |
String |
toString() |
QueryAnswers |
unify(MultiUnifier multiUnifier)
unify the answers by applying multiunifier to variable set
|
QueryAnswers |
unify(Unifier unifier)
unify the answers by applying unifier to variable set
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic QueryAnswers()
public QueryAnswers(ConceptMap ans)
public QueryAnswers(Collection<ConceptMap> ans)
@Nonnull public Iterator<ConceptMap> iterator()
iterator in interface Iterable<ConceptMap>public java.util.stream.Stream<ConceptMap> stream()
public boolean add(ConceptMap a)
public boolean addAll(QueryAnswers ans)
public boolean removeAll(QueryAnswers ans)
public boolean contains(ConceptMap a)
public boolean isEmpty()
public QueryAnswers unify(Unifier unifier)
unifier - map of [key: from/value: to] unifierspublic QueryAnswers unify(MultiUnifier multiUnifier)
multiUnifier - multiunifier to be applied to the query answersCopyright © 2018 Grakn Labs Ltd. All rights reserved.