|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.relation.rule.eval.Solution<E>
public class Solution<E>
Flyweight implementation.
| Constructor Summary | |
|---|---|
Solution(IJoinNexus joinNexus,
IRule<E> rule,
IBindingSet bindingSet)
Constructs the element iff requested, saves the rule reference iff requested, and clones and saves the bindingSet iff requested. |
|
| Method Summary | |
|---|---|
E |
get()
Return the element materialized from the head of the rule given a set of bindings for that rule (optional operation). |
IBindingSet |
getBindingSet()
Return the IBindingSet for this solution (optional operation). |
IRule<E> |
getRule()
Return the IRule that generated this solution (optional
operation). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Solution(IJoinNexus joinNexus,
IRule<E> rule,
IBindingSet bindingSet)
IJoinNexus.solutionFlags(). When
requested, the element is created using
IRelation#newElement(IPredicate, IBindingSet) for the
IRelation that is named by the head of the rule.
e - The element.rule - The rule.bindingSet - The binding set for this solution. If
IJoinNexus.BINDINGS was specified, then the binding
set will be cloned by this ctor.
IllegalArgumentException - if any parameter is null.| Method Detail |
|---|
public E get()
ISolutionbindings for that rule (optional operation).
get in interface ISolution<E>null if the element was not
requested.public IRule<E> getRule()
ISolutionIRule that generated this solution (optional
operation).
getRule in interface ISolution<E>IRule -or- null if the rule was not
requested.public IBindingSet getBindingSet()
ISolutionIBindingSet for this solution (optional operation).
getBindingSet in interface ISolution<E>IBindingSet.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||