public interface MatchQueryInternal extends MatchQueryAdmin
| Modifier and Type | Method and Description |
|---|---|
default <S> AggregateQuery<S> |
aggregate(Aggregate<? super Map<String,Concept>,S> aggregate)
Aggregate results of a query.
|
default AskQuery |
ask() |
static String |
colorKeyword(String keyword) |
static String |
colorType(String type) |
default DeleteQuery |
delete(Collection<? extends Var> deleters) |
default DeleteQuery |
delete(String... names) |
default MatchQuery |
distinct()
remove any duplicate results from the query
|
default java.util.stream.Stream<Concept> |
get(String name) |
default InsertQuery |
insert(Collection<? extends Var> vars) |
default boolean |
isReadOnly()
Whether this query will modify the graph
|
default MatchQuery |
limit(long limit) |
default MatchQuery |
offset(long offset) |
default MatchQuery |
orderBy(String varName,
boolean asc)
Order the results by degree
|
default java.util.stream.Stream<String> |
resultsString()
Execute the query and return a human-readable stream of results
|
default MatchQuery |
select(Set<String> names) |
default java.util.stream.Stream<Map<String,Concept>> |
stream() |
java.util.stream.Stream<Map<String,Concept>> |
stream(Optional<MindmapsGraph> graph,
Optional<MatchOrder> order)
Execute the query using the given graph.
|
default MatchQuery |
withGraph(MindmapsGraph graph) |
admin, getGraph, getPattern, getSelectedNames, getTypes, getTypesdelete, execute, insert, orderBy, selectiterator, parallelStreamforEach, spliteratorstatic String colorKeyword(String keyword)
keyword - a keyword to color-code using ANSI colorsstatic String colorType(String type)
type - a type to color-code using ANSI colorsdefault java.util.stream.Stream<String> resultsString()
Querydefault boolean isReadOnly()
Queryjava.util.stream.Stream<Map<String,Concept>> stream(Optional<MindmapsGraph> graph, Optional<MatchOrder> order)
graph - the graph to use to execute the queryorder - how to order the resulting streamdefault java.util.stream.Stream<Map<String,Concept>> stream()
stream in interface Streamable<Map<String,Concept>>default MatchQuery withGraph(MindmapsGraph graph)
default MatchQuery limit(long limit)
limit in interface MatchQuerylimit - the maximum number of results the query should returndefault MatchQuery offset(long offset)
offset in interface MatchQueryoffset - the number of results to skipdefault MatchQuery distinct()
MatchQuerydistinct in interface MatchQuerydefault <S> AggregateQuery<S> aggregate(Aggregate<? super Map<String,Concept>,S> aggregate)
MatchQueryaggregate in interface MatchQueryS - the type of the aggregate resultaggregate - the aggregate operation to applydefault MatchQuery select(Set<String> names)
select in interface MatchQuerynames - a set of variable names to selectdefault java.util.stream.Stream<Concept> get(String name)
get in interface MatchQueryname - a variable name to getdefault AskQuery ask()
ask in interface MatchQuerydefault InsertQuery insert(Collection<? extends Var> vars)
insert in interface MatchQueryvars - a collection of variables to insert for each result of this match querydefault DeleteQuery delete(String... names)
delete in interface MatchQuerynames - an array of variable names to delete for each result of this match querydefault DeleteQuery delete(Collection<? extends Var> deleters)
delete in interface MatchQuerydeleters - a collection of variables stating what properties to delete for each result of this match querydefault MatchQuery orderBy(String varName, boolean asc)
MatchQueryorderBy in interface MatchQueryvarName - the variable name to order the results byasc - whether to use ascending orderCopyright © 2016. All rights reserved.