| Package | Description |
|---|---|
| net.fortytwo.stream.caching |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Solution<T>> |
SolutionIndex.composeSolutions(String variable,
T value,
Solution<T> ps,
long now) |
Iterator<Solution<T>> |
SolutionIndex.getComposableSolutions(String variable,
T value,
Solution<T> ps,
long now) |
Iterator<Solution<T>> |
SolutionIndex.getSolutions(String variable,
T value,
long now)
Retrieves all unexpired solutions for a given variable/value pair
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SolutionIndex.add(Solution<T> s,
long now)
Adds a solution to this index.
|
boolean |
SolutionGroup.add(Solution<T> sol,
long now)
Adds a solution, logically, to this group.
|
boolean |
Solution.composableWith(Solution<T> other,
Query.QueryVariables vars)
Checks for non-overlapping patterns and compatible bindings between this solution and another solution,
potentially reducing work and eliminating false positives from query results.
|
Iterator<Solution<T>> |
SolutionIndex.composeSolutions(String variable,
T value,
Solution<T> ps,
long now) |
Iterator<Solution<T>> |
SolutionIndex.getComposableSolutions(String variable,
T value,
Solution<T> ps,
long now) |
void |
SolutionIndex.joinSolutions(Solution<T> matchedSolution,
Bindings<T> bindings,
Stack<Solution<T>> solutions,
long now)
Finds the result of joining composable combinations of an original solution together with all
unexpired solutions containing any of a provided set of bindings.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SolutionIndex.joinSolutions(Solution<T> matchedSolution,
Bindings<T> bindings,
Stack<Solution<T>> solutions,
long now)
Finds the result of joining composable combinations of an original solution together with all
unexpired solutions containing any of a provided set of bindings.
|
| Constructor and Description |
|---|
Solution(int totalPatterns,
Solution<T> first,
Solution<T> second) |
Solution(int totalPatterns,
Solution<T> first,
Solution<T> second) |
Solution(Solution<T> other)
Copy constructor
|
Solution(Solution<T> other,
int index) |
Solution(Solution<T> other,
int index,
Bindings<T> newBindings) |
Copyright © 2016. All Rights Reserved.