eu.larkc.core.data
Class VariableBindingImpl
java.lang.Object
eu.larkc.core.data.VariableBindingImpl
- All Implemented Interfaces:
- InformationSet, VariableBinding, java.io.Serializable
public class VariableBindingImpl
- extends java.lang.Object
- implements VariableBinding
Default variable binding implementation. It creates new arrays out of input
parameters.
- Author:
- Luka Bradesko
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableBindingImpl
public VariableBindingImpl(java.util.List<VariableBinding.Binding> values,
java.util.List<java.lang.String> variableNames)
getVariables
public java.util.List<java.lang.String> getVariables()
- Description copied from interface:
VariableBinding
- Gets the list of variables in the projection.
- Specified by:
getVariables
in interface VariableBinding
- Returns:
- a list of variables
iterator
public CloseableIterator<VariableBinding.Binding> iterator()
- Description copied from interface:
VariableBinding
- Gets an iterator of the solutions.
- Specified by:
iterator
in interface VariableBinding
- Returns:
- iterator to the data
toRDF
public SetOfStatements toRDF(SetOfStatements data)
- Description copied from interface:
InformationSet
- Serializes this object to SetOfStatements.
- Specified by:
toRDF
in interface InformationSet
- Parameters:
data
- is stream to serialize this object to.
- Returns:
- reference to the set of statements that contains the serialized
data.