V - the value type, e.g. an RDF value classpublic class SolutionIndex<V> extends java.lang.Object implements Index<Solution<V>>
| Constructor and Description |
|---|
SolutionIndex(QueryContext<?,V> queryContext,
int cardinality) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Solution<V> solution)
Adds a solution to the index.
|
void |
clear()
Removes all data at once.
|
int |
getCardinality()
Gets the variable-cardinality of this index
|
Index<java.util.function.Consumer<Solution<V>>> |
getConsumerIndex() |
java.util.Set<Solution<V>> |
getSolutions() |
java.util.Set<Solution<V>> |
getSolutions(int index,
V value) |
boolean |
isEmpty() |
boolean |
remove(Solution<V> solution)
Removes the given item from this index
|
boolean |
removePattern(V[] pattern)
Removes any matching solution from the index.
|
public SolutionIndex(QueryContext<?,V> queryContext, int cardinality)
public int getCardinality()
public void add(Solution<V> solution)
public boolean remove(Solution<V> solution)
Indexpublic boolean removePattern(V[] pattern)
pattern - a pattern matching the solutions to be removedpublic void clear()
IndexCopyright © 2016. All Rights Reserved.