Class SPARQLQueryBindingSet

  • All Implemented Interfaces:
    Serializable, Iterable<org.eclipse.rdf4j.query.Binding>, org.eclipse.rdf4j.query.BindingSet

    public class SPARQLQueryBindingSet
    extends org.eclipse.rdf4j.query.AbstractBindingSet
    An implementation of the BindingSet interface that is used to evaluate query object models. This implementations differs from MapBindingSet in that it maps variable names to Value objects and that the Binding objects are created lazily. Note that this class is a fully equivalent copy of org.eclipse.rdf4j.query.algebra.evaluation.QueryBindingSet, and is only included here to avoid a circular dependency between the algebra-evaluation module and the sparql-repository module.
    See Also:
    Serialized Form
    • Constructor Detail

      • SPARQLQueryBindingSet

        public SPARQLQueryBindingSet()
      • SPARQLQueryBindingSet

        public SPARQLQueryBindingSet​(int capacity)
      • SPARQLQueryBindingSet

        public SPARQLQueryBindingSet​(org.eclipse.rdf4j.query.BindingSet bindingSet)
    • Method Detail

      • addAll

        public void addAll​(org.eclipse.rdf4j.query.BindingSet bindingSet)
      • addBinding

        public void addBinding​(org.eclipse.rdf4j.query.Binding binding)
        Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
        Parameters:
        binding - The binding to add this this BindingSet.
      • addBinding

        public void addBinding​(String name,
                               org.eclipse.rdf4j.model.Value value)
        Adds a new binding to the binding set. The binding's name must not already be part of this binding set.
        Parameters:
        name - The binding's name, must not be bound in this binding set already.
        value - The binding's value.
      • setBinding

        public void setBinding​(org.eclipse.rdf4j.query.Binding binding)
      • setBinding

        public void setBinding​(String name,
                               org.eclipse.rdf4j.model.Value value)
      • removeBinding

        public void removeBinding​(String name)
      • getBindingNames

        public Set<String> getBindingNames()
      • getValue

        public org.eclipse.rdf4j.model.Value getValue​(String bindingName)
      • getBinding

        public org.eclipse.rdf4j.query.Binding getBinding​(String bindingName)
      • hasBinding

        public boolean hasBinding​(String bindingName)
      • iterator

        public Iterator<org.eclipse.rdf4j.query.Binding> iterator()
      • size

        public int size()
      • equals

        public boolean equals​(Object other)
        Specified by:
        equals in interface org.eclipse.rdf4j.query.BindingSet
        Overrides:
        equals in class org.eclipse.rdf4j.query.AbstractBindingSet