java.lang.Object
org.apache.jena.sparql.engine.binding.BindingBase
- All Implemented Interfaces:
Binding
- Direct Known Subclasses:
Binding0,Binding1,Binding2,Binding3,Binding4,BindingOverMap,BindingProjectBase
Machinery encapsulating a mapping from a name to a value.
The "parent" is a shared, immutable, common set of bindings.
An association of var/node must not override a setting in the parent.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanTest whether a name is bound to some objectdetach()Returns a binding which is guaranteed to be independent of any resources such as an ongoing query execution or a disk-based dataset.booleanvoidforEach(BiConsumer<Var, org.apache.jena.graph.Node> action) Operate on each entry.voidformat1(StringBuilder sbuff) final org.apache.jena.graph.NodeReturn the object bound to a name, or nullinthashCode()static intbooleanisEmpty()Is this an empty binding?final intsize()Number of (var, value) pairs.toString()vars()Iterate over all variables of this binding.Collect all variables of this binding.
-
Method Details
-
vars
Description copied from interface:BindingIterate over all variables of this binding. -
varsMentioned
Description copied from interface:BindingCollect all variables of this binding.- Specified by:
varsMentionedin interfaceBinding
-
forEach
Operate on each entry. -
size
public final int size()Description copied from interface:BindingNumber of (var, value) pairs. -
isEmpty
public boolean isEmpty()Description copied from interface:BindingIs this an empty binding? No variables. -
contains
Test whether a name is bound to some object -
get
Return the object bound to a name, or null -
toString
-
format1
-
toString1
-
hashCode
public int hashCode() -
equals
-
hashCode
-
detach
Description copied from interface:BindingReturns a binding which is guaranteed to be independent of any resources such as an ongoing query execution or a disk-based dataset. May return itself if it is already detached.
-