|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.relation.rule.HashBindingSet
public class HashBindingSet
IBindingSet backed by a HashMap.
| Constructor Summary | |
|---|---|
|
HashBindingSet()
New empty binding set. |
protected |
HashBindingSet(HashBindingSet src)
Copy constructor. |
| Method Summary | |
|---|---|
void |
clear(IVariable var)
Clear any binding for the variable. |
void |
clearAll()
Clear all bindings. |
HashBindingSet |
clone()
Return a shallow copy of the binding set. |
boolean |
equals(IBindingSet o)
True iff the variables and their bound values are the same for the two binding sets. |
IConstant |
get(IVariable var)
Return the binding for the variable. |
boolean |
isBound(IVariable var)
Return true iff the variable is bound. |
Iterator<Map.Entry<IVariable,IConstant>> |
iterator()
Iterator does not support removal, set, or concurrent modification. |
void |
set(IVariable var,
IConstant val)
Bind the variable to the value. |
int |
size()
The #of bound variables. |
String |
toString()
|
Iterator<IVariable> |
vars()
Visits the bound variables. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HashBindingSet()
protected HashBindingSet(HashBindingSet src)
src - | Method Detail |
|---|
public boolean isBound(IVariable var)
IBindingSettrue iff the variable is bound.
isBound in interface IBindingSetvar - The variable.
true if the variable is bound.public IConstant get(IVariable var)
IBindingSet
get in interface IBindingSetvar - The variable.
null iff the
variable is not bound.
public void set(IVariable var,
IConstant val)
IBindingSet
set in interface IBindingSetvar - The variable.val - The value (MAY NOT be null).public void clear(IVariable var)
IBindingSet
clear in interface IBindingSetvar - The variable.public void clearAll()
IBindingSet
clearAll in interface IBindingSetpublic String toString()
toString in class Objectpublic Iterator<Map.Entry<IVariable,IConstant>> iterator()
iterator in interface IBindingSetpublic Iterator<IVariable> vars()
IBindingSet
vars in interface IBindingSetpublic int size()
IBindingSet
size in interface IBindingSetpublic HashBindingSet clone()
IBindingSet
clone in interface IBindingSetclone in class Objectpublic boolean equals(IBindingSet o)
IBindingSet
equals in interface IBindingSeto - Another binding set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||