eu.larkc.core.data
Class VariableBindingImpl

java.lang.Object
  extended by 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

Nested Class Summary
static class VariableBindingImpl.BindingRow
           
 
Nested classes/interfaces inherited from interface eu.larkc.core.data.VariableBinding
VariableBinding.Binding
 
Constructor Summary
VariableBindingImpl(java.util.List<VariableBinding.Binding> values, java.util.List<java.lang.String> variableNames)
           
 
Method Summary
 java.util.List<java.lang.String> getVariables()
          Gets the list of variables in the projection.
 CloseableIterator<VariableBinding.Binding> iterator()
          Gets an iterator of the solutions.
 SetOfStatements toRDF(SetOfStatements data)
          Serializes this object to SetOfStatements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableBindingImpl

public VariableBindingImpl(java.util.List<VariableBinding.Binding> values,
                           java.util.List<java.lang.String> variableNames)
Method Detail

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.