Class PathIteration.ValuePair
- java.lang.Object
-
- org.eclipse.rdf4j.query.algebra.evaluation.iterator.PathIteration.ValuePair
-
- All Implemented Interfaces:
Serializable,Iterable<Binding>,BindingSet,MutableBindingSet
- Enclosing class:
- PathIteration
public static class PathIteration.ValuePair extends Object implements MutableBindingSet
A specialized BingingSet that can only hold the start and end values of a Path. Minimizing unneeded memory use, and allows specialization in the sets required to answer this part of a query.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinding(Binding binding)booleanequals(Object obj)BindinggetBinding(String bindingName)Set<String>getBindingNames()org.eclipse.rdf4j.model.ValuegetEndValue()org.eclipse.rdf4j.model.ValuegetStartValue()org.eclipse.rdf4j.model.ValuegetValue(String bindingName)booleanhasBinding(String bindingName)inthashCode()Iterator<Binding>iterator()voidsetBinding(String name, org.eclipse.rdf4j.model.Value value)voidsetBinding(Binding binding)intsize()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.query.BindingSet
isEmpty
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.eclipse.rdf4j.query.MutableBindingSet
addBinding
-
-
-
-
Method Detail
-
getStartValue
public org.eclipse.rdf4j.model.Value getStartValue()
- Returns:
- Returns the startValue.
-
getEndValue
public org.eclipse.rdf4j.model.Value getEndValue()
- Returns:
- Returns the endValue.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceBindingSet- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceBindingSet- Overrides:
equalsin classObject
-
iterator
public Iterator<Binding> iterator()
- Specified by:
iteratorin interfaceBindingSet- Specified by:
iteratorin interfaceIterable<Binding>
-
getBindingNames
public Set<String> getBindingNames()
- Specified by:
getBindingNamesin interfaceBindingSet
-
getBinding
public Binding getBinding(String bindingName)
- Specified by:
getBindingin interfaceBindingSet
-
hasBinding
public boolean hasBinding(String bindingName)
- Specified by:
hasBindingin interfaceBindingSet
-
getValue
public org.eclipse.rdf4j.model.Value getValue(String bindingName)
- Specified by:
getValuein interfaceBindingSet
-
size
public int size()
- Specified by:
sizein interfaceBindingSet
-
addBinding
public void addBinding(Binding binding)
- Specified by:
addBindingin interfaceMutableBindingSet
-
setBinding
public void setBinding(String name, org.eclipse.rdf4j.model.Value value)
- Specified by:
setBindingin interfaceMutableBindingSet
-
setBinding
public void setBinding(Binding binding)
- Specified by:
setBindingin interfaceMutableBindingSet
-
-