|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.obsearch.example.ted.OBTed
public class OBTed
| Field Summary | |
|---|---|
protected SliceForest |
tree
The root node of the tree. |
| Constructor Summary | |
|---|---|
OBTed()
Default constructor must be provided by every object that implements the interface OB. |
|
OBTed(java.lang.String slice)
Creates an slice object. |
|
| Method Summary | |
|---|---|
short |
distance(OBShort object)
Calculates the distance between two trees. |
boolean |
equals(java.lang.Object obj)
Returns true of this.tree.equals(obj.tree). |
int |
hashCode()
A hashCode based on the string representation of the tree. |
void |
load(byte[] in)
Re-creates this object from the given byte stream |
int |
size()
Returns the size (in nodes) of the tree. |
byte[] |
store()
Stores this object into the given byte stream. |
java.lang.String |
toString()
|
protected void |
updateTree(java.lang.String x)
Internal method that updates the Tree from the String |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SliceForest tree
| Constructor Detail |
|---|
public OBTed()
public OBTed(java.lang.String slice)
throws OBException
slice - A string representation of a tree.
OBException| Method Detail |
|---|
public final short distance(OBShort object)
throws OBException
distance in interface OBShortobject - The other object to compare
OBException - if something wrong happens.net.obsearch.OB#distance(net.obsearch.OB,
net.obsearch.result.Dim)
protected final void updateTree(java.lang.String x)
throws OBException
OBException
public final int size()
throws OBException
OBException - If something goes wrong.public final java.lang.String toString()
toString in class java.lang.Object
public final void load(byte[] in)
throws OBException,
java.io.IOException
load in interface Storablein - A byte stream with the data that must be loaded.
OBException - if the data cannot be loaded.
java.io.IOExceptionnet.obsearch.Storable#load(com.sleepycat.bind.tuple.TupleInput)
public final byte[] store()
throws java.io.IOException
store in interface Storableout - The byte stream to be used
java.io.IOExceptionnet.obsearch.Storable#store(com.sleepycat.bind.tuple.TupleOutput)public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object to compare.
public final int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||