Class SPARQLQueryBindingSet
- java.lang.Object
-
- org.eclipse.rdf4j.query.AbstractBindingSet
-
- org.eclipse.rdf4j.repository.sparql.query.SPARQLQueryBindingSet
-
- All Implemented Interfaces:
Serializable,Iterable<org.eclipse.rdf4j.query.Binding>,org.eclipse.rdf4j.query.BindingSet
public class SPARQLQueryBindingSet extends org.eclipse.rdf4j.query.AbstractBindingSetAn implementation of theBindingSetinterface that is used to evaluate query object models. This implementations differs fromMapBindingSetin 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 oforg.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 Summary
Constructors Constructor Description SPARQLQueryBindingSet()SPARQLQueryBindingSet(int capacity)SPARQLQueryBindingSet(org.eclipse.rdf4j.query.BindingSet bindingSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(org.eclipse.rdf4j.query.BindingSet bindingSet)voidaddBinding(String name, org.eclipse.rdf4j.model.Value value)Adds a new binding to the binding set.voidaddBinding(org.eclipse.rdf4j.query.Binding binding)Adds a new binding to the binding set.booleanequals(Object other)org.eclipse.rdf4j.query.BindinggetBinding(String bindingName)Set<String>getBindingNames()org.eclipse.rdf4j.model.ValuegetValue(String bindingName)booleanhasBinding(String bindingName)Iterator<org.eclipse.rdf4j.query.Binding>iterator()voidremoveAll(Collection<String> bindingNames)voidremoveBinding(String name)voidretainAll(Collection<String> bindingNames)voidsetBinding(String name, org.eclipse.rdf4j.model.Value value)voidsetBinding(org.eclipse.rdf4j.query.Binding binding)intsize()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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)
-
removeAll
public void removeAll(Collection<String> bindingNames)
-
retainAll
public void retainAll(Collection<String> bindingNames)
-
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:
equalsin interfaceorg.eclipse.rdf4j.query.BindingSet- Overrides:
equalsin classorg.eclipse.rdf4j.query.AbstractBindingSet
-
-