Class QueryBindingSet
- java.lang.Object
-
- org.eclipse.rdf4j.query.AbstractBindingSet
-
- org.eclipse.rdf4j.query.algebra.evaluation.QueryBindingSet
-
- All Implemented Interfaces:
Serializable,Iterable<Binding>,BindingSet,MutableBindingSet
public class QueryBindingSet extends AbstractBindingSet implements MutableBindingSet
An implementation of theBindingSetinterface that is used to evalate query object models. This implementations differs fromMapBindingSetin that it maps variable names to Value objects and that the Binding objects are created lazily.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryBindingSet()QueryBindingSet(int capacity)QueryBindingSet(BindingSet bindingSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(BindingSet bindingSet)voidaddBinding(String name, org.eclipse.rdf4j.model.Value value)Adds a new binding to the binding set.voidaddBinding(Binding binding)Adds a new binding to the binding set.booleanequals(Object other)BindinggetBinding(String bindingName)Set<String>getBindingNames()org.eclipse.rdf4j.model.ValuegetValue(String bindingName)booleanhasBinding(String bindingName)Iterator<Binding>iterator()voidremoveAll(Collection<String> bindingNames)voidremoveBinding(String name)voidretainAll(Collection<String> bindingNames)voidsetBinding(String name, org.eclipse.rdf4j.model.Value value)voidsetBinding(Binding binding)intsize()-
Methods inherited from class org.eclipse.rdf4j.query.AbstractBindingSet
hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.query.BindingSet
hashCode, isEmpty
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
QueryBindingSet
public QueryBindingSet()
-
QueryBindingSet
public QueryBindingSet(int capacity)
-
QueryBindingSet
public QueryBindingSet(BindingSet bindingSet)
-
-
Method Detail
-
addAll
public void addAll(BindingSet bindingSet)
-
addBinding
public void addBinding(Binding binding)
Adds a new binding to the binding set. The binding's name must not already be part of this binding set.- Specified by:
addBindingin interfaceMutableBindingSet- 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.- Specified by:
addBindingin interfaceMutableBindingSet- Parameters:
name- The binding's name, must not be bound in this binding set already.value- The binding's value.
-
setBinding
public void setBinding(Binding binding)
- Specified by:
setBindingin interfaceMutableBindingSet
-
setBinding
public void setBinding(String name, org.eclipse.rdf4j.model.Value value)
- Specified by:
setBindingin interfaceMutableBindingSet
-
removeBinding
public void removeBinding(String name)
-
removeAll
public void removeAll(Collection<String> bindingNames)
-
retainAll
public void retainAll(Collection<String> bindingNames)
-
getBindingNames
public Set<String> getBindingNames()
- Specified by:
getBindingNamesin interfaceBindingSet
-
getValue
public org.eclipse.rdf4j.model.Value getValue(String bindingName)
- Specified by:
getValuein interfaceBindingSet
-
getBinding
public Binding getBinding(String bindingName)
- Specified by:
getBindingin interfaceBindingSet
-
hasBinding
public boolean hasBinding(String bindingName)
- Specified by:
hasBindingin interfaceBindingSet
-
iterator
public Iterator<Binding> iterator()
- Specified by:
iteratorin interfaceBindingSet- Specified by:
iteratorin interfaceIterable<Binding>
-
size
public int size()
- Specified by:
sizein interfaceBindingSet
-
equals
public boolean equals(Object other)
- Specified by:
equalsin interfaceBindingSet- Overrides:
equalsin classAbstractBindingSet
-
-