public class Solution<E> extends Object implements ISolution<E>, Serializable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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
.public E get()
ISolution
bindings
for that rule (optional operation).public IRule<E> getRule()
ISolution
IRule
that generated this solution (optional
operation).public IBindingSet getBindingSet()
ISolution
IBindingSet
for this solution (optional operation).getBindingSet
in interface ISolution<E>
IBindingSet
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.