public class SPARQLQueryBindingSet
extends org.eclipse.rdf4j.query.AbstractBindingSet
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.| Constructor and Description |
|---|
SPARQLQueryBindingSet() |
SPARQLQueryBindingSet(org.eclipse.rdf4j.query.BindingSet bindingSet) |
SPARQLQueryBindingSet(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(org.eclipse.rdf4j.query.BindingSet bindingSet) |
void |
addBinding(org.eclipse.rdf4j.query.Binding binding)
Adds a new binding to the binding set.
|
void |
addBinding(String name,
org.eclipse.rdf4j.model.Value value)
Adds a new binding to the binding set.
|
boolean |
equals(Object other) |
org.eclipse.rdf4j.query.Binding |
getBinding(String bindingName) |
Set<String> |
getBindingNames() |
org.eclipse.rdf4j.model.Value |
getValue(String bindingName) |
boolean |
hasBinding(String bindingName) |
Iterator<org.eclipse.rdf4j.query.Binding> |
iterator() |
void |
removeAll(Collection<String> bindingNames) |
void |
removeBinding(String name) |
void |
retainAll(Collection<String> bindingNames) |
void |
setBinding(org.eclipse.rdf4j.query.Binding binding) |
void |
setBinding(String name,
org.eclipse.rdf4j.model.Value value) |
int |
size() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SPARQLQueryBindingSet()
public SPARQLQueryBindingSet(int capacity)
public SPARQLQueryBindingSet(org.eclipse.rdf4j.query.BindingSet bindingSet)
public void addAll(org.eclipse.rdf4j.query.BindingSet bindingSet)
public void addBinding(org.eclipse.rdf4j.query.Binding binding)
binding - The binding to add this this BindingSet.public void addBinding(String name, org.eclipse.rdf4j.model.Value value)
name - The binding's name, must not be bound in this binding set already.value - The binding's value.public void setBinding(org.eclipse.rdf4j.query.Binding binding)
public void setBinding(String name, org.eclipse.rdf4j.model.Value value)
public void removeBinding(String name)
public void removeAll(Collection<String> bindingNames)
public void retainAll(Collection<String> bindingNames)
public org.eclipse.rdf4j.model.Value getValue(String bindingName)
public org.eclipse.rdf4j.query.Binding getBinding(String bindingName)
public boolean hasBinding(String bindingName)
public Iterator<org.eclipse.rdf4j.query.Binding> iterator()
public int size()
public boolean equals(Object other)
equals in interface org.eclipse.rdf4j.query.BindingSetequals in class org.eclipse.rdf4j.query.AbstractBindingSetCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.