public class Query extends Object implements MatchQueryInternal
| Modifier and Type | Field and Description |
|---|---|
protected Set<Atomic> |
atomSet |
protected MindmapsGraph |
graph |
| Modifier | Constructor and Description |
|---|---|
protected |
Query(Atomic atom) |
|
Query(MatchQuery query,
MindmapsGraph graph) |
|
Query(Query q) |
|
Query(String query,
MindmapsGraph graph) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaggregate, ask, colorKeyword, colorType, delete, delete, distinct, get, insert, isReadOnly, limit, offset, orderBy, resultsString, select, stream, withGraphadmindelete, execute, insert, orderBy, selectiterator, parallelStreamforEach, spliteratorprotected final MindmapsGraph graph
public Query(String query, MindmapsGraph graph)
public Query(MatchQuery query, MindmapsGraph graph)
public Query(Query q)
protected Query(Atomic atom)
public void print()
public Set<Type> getTypes(MindmapsGraph graph)
getTypes in interface MatchQueryAdmingraph - the graph to use to get types frompublic Set<Type> getTypes()
getTypes in interface MatchQueryAdminpublic Set<String> getSelectedNames()
getSelectedNames in interface MatchQueryAdminpublic java.util.stream.Stream<Map<String,Concept>> stream(Optional<MindmapsGraph> graph, Optional<MatchOrder> order)
MatchQueryInternalstream in interface MatchQueryInternalgraph - the graph to use to execute the queryorder - how to order the resulting streampublic Optional<MindmapsGraph> getGraph()
getGraph in interface MatchQueryAdminpublic Conjunction<PatternAdmin> getPattern()
getPattern in interface MatchQueryAdminpublic boolean isRuleResolvable()
public QueryAnswers getAnswers()
public void DBlookup()
public void memoryLookup(Map<AtomicQuery,AtomicQuery> matAnswers)
public void propagateAnswers(Map<AtomicQuery,AtomicQuery> matAnswers)
public boolean containsAtom(Atomic atom)
public void unify(String from, String to)
from - variable name to be changedto - new variable namepublic void unify(Map<String,String> unifiers)
unifiers - contain unifiers (variable mappings) to be appliedpublic MatchQuery getMatchQuery()
protected void addAtom(Atomic atom)
protected void removeAtom(Atomic atom)
public boolean isEquivalent(Query q)
q - query to be compared withCopyright © 2016. All rights reserved.