com.hp.hpl.jena.sparql.engine.binding
Class BindingHashMap

java.lang.Object
  extended by com.hp.hpl.jena.sparql.engine.binding.BindingBase
      extended by com.hp.hpl.jena.sparql.engine.binding.BindingHashMap
All Implemented Interfaces:
Binding, BindingMap

public class BindingHashMap
extends BindingBase
implements BindingMap

A muatable mapping from a name to a value such that we can create a tree of levels with higher (earlier levels) being shared. Looking up a name is done by looking in the current level, then trying the parent is not found.


Constructor Summary
BindingHashMap()
          Using BindingFactory.create is better
BindingHashMap(Binding parent)
          Using BindingFactory.create is better
 
Method Summary
 void add(Var var, Node node)
          Add a (var,value) - the node value is never null
 void addAll(Binding other)
          Add all the (var, value) pairs from another binding
 boolean contains1(Var var)
           
 Node get1(Var var)
           
 Iterator<Var> vars1()
          Iterate over all the names of variables.
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.binding.BindingBase
contains, equals, equals, format1, get, getParent, hashCode, hashCode, isEmpty, size, toString, toString1, vars
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.engine.binding.Binding
contains, get, isEmpty, size, vars
 

Constructor Detail

BindingHashMap

public BindingHashMap(Binding parent)
Using BindingFactory.create is better


BindingHashMap

public BindingHashMap()
Using BindingFactory.create is better

Method Detail

vars1

public Iterator<Var> vars1()
Iterate over all the names of variables.


contains1

public boolean contains1(Var var)

get1

public Node get1(Var var)

add

public final void add(Var var,
                      Node node)
Add a (var,value) - the node value is never null

Specified by:
add in interface BindingMap

addAll

public final void addAll(Binding other)
Description copied from interface: BindingMap
Add all the (var, value) pairs from another binding

Specified by:
addAll in interface BindingMap


Licenced under the Apache License, Version 2.0