K - the key type, e.g. StringV - the value type, e.g. an RDF value classpublic class JoinHelper<K,V> extends Object implements java.util.function.Consumer<Solution<V>>
| Constructor and Description |
|---|
JoinHelper(SolutionIndex<V> solutionIndex,
Map<K,Integer> indexByKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Solution<V> solution) |
K[] |
getKeys() |
Set<Solution<V>> |
getSolutions() |
Set<Solution<V>> |
getSolutions(K key,
V val)
Finds all solutions with the given key/value pair
|
void |
initialize(List<JoinHelper<K,V>> allHelpers,
Map<K,Set<JoinHelper<K,V>>> helpersByVariable,
java.util.function.BiConsumer<Map<K,V>,Long> solutionConsumer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic JoinHelper(SolutionIndex<V> solutionIndex, Map<K,Integer> indexByKey)
public Set<Solution<V>> getSolutions(K key, V val)
key - a key present in any matching solutionsval - the corresponding value for the key in any matching solutionspublic K[] getKeys()
public void initialize(List<JoinHelper<K,V>> allHelpers, Map<K,Set<JoinHelper<K,V>>> helpersByVariable, java.util.function.BiConsumer<Map<K,V>,Long> solutionConsumer)
public void accept(Solution<V> solution)
accept in interface java.util.function.Consumer<Solution<V>>Copyright © 2016. All Rights Reserved.