K - the key type, e.g. StringV - the value type, e.g. an RDF value classpublic class JoinHelper<K,V> extends java.lang.Object implements java.util.function.Consumer<Solution<V>>
| Constructor and Description |
|---|
JoinHelper(SolutionIndex<V> solutionIndex,
java.util.Map<K,java.lang.Integer> indexByKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Solution<V> solution) |
K[] |
getKeys() |
java.util.Set<Solution<V>> |
getSolutions() |
java.util.Set<Solution<V>> |
getSolutions(K key,
V val)
Finds all solutions with the given key/value pair
|
void |
initialize(java.util.List<JoinHelper<K,V>> allHelpers,
java.util.Map<K,java.util.Set<JoinHelper<K,V>>> helpersByVariable,
java.util.function.BiConsumer<java.util.Map<K,V>,java.lang.Long> solutionConsumer) |
public JoinHelper(SolutionIndex<V> solutionIndex, java.util.Map<K,java.lang.Integer> indexByKey)
public java.util.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(java.util.List<JoinHelper<K,V>> allHelpers, java.util.Map<K,java.util.Set<JoinHelper<K,V>>> helpersByVariable, java.util.function.BiConsumer<java.util.Map<K,V>,java.lang.Long> solutionConsumer)
Copyright © 2016. All Rights Reserved.