public class Solution<T> extends SolutionPattern
SolutionPattern.ContainmentRelationexpirationTime, matchedPatterns, remainingPatterns| Constructor and Description |
|---|
Solution(int totalPatterns,
int index,
Bindings<T> bindings,
long expirationTime)
Constructs a solution in which a single tuple pattern of a graph pattern has been matched
|
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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
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.
|
Bindings<T> |
getBindings()
Gets the variables bindings of this solution
|
void |
setBindings(Bindings<T> bindings)
Sets the variable bindings of this solution.
|
compareExpirationTimes, copyFrom, disjointWith, isComplete, isExpired, minExpirationTime, relateTo, setExpirationTimepublic Solution(Solution<T> other)
other - another solution from which to produce a shallow copypublic Solution(int totalPatterns,
int index,
Bindings<T> bindings,
long expirationTime)
totalPatterns - the total number of tuple patterns in the graph patternindex - the index of the matched pattern (the first pattern having an index of 0)bindings - the variable/term bindings created by the matchexpirationTime - the expiration time of this solution in milliseconds since the Unix epoch
(or 0 for infinite lifetime)public Bindings<T> getBindings()
public void setBindings(Bindings<T> bindings)
bindings - the new variable bindingspublic boolean composableWith(Solution<T> other, Query.QueryVariables vars)
other - the other solutionvars - the query variables from which both solutions are drawnCopyright © 2016. All Rights Reserved.