|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.index.tree.AbstractLeafEntry
public abstract class AbstractLeafEntry
Abstract superclass for entries in an tree based index structure.
Field Summary | |
---|---|
private DBID |
id
Holds the id of the object (node or data object) represented by this entry. |
Constructor Summary | |
---|---|
|
AbstractLeafEntry()
Empty constructor for serialization purposes. |
protected |
AbstractLeafEntry(DBID id)
Provides a new AbstractEntry with the specified id. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
DBID |
getDBID()
Get the DBID of this leaf entry. |
int |
hashCode()
Returns as hash code for the entry its id. |
boolean |
isLeafEntry()
Returns true if this entry is an entry in a leaf node (i.e. this entry represents a data object), false otherwise. |
void |
readExternal(ObjectInput in)
Restores the id of the object (node or data object) that is represented by this entry from the specified stream. |
String |
toString()
Returns the id as a string representation of this entry. |
void |
writeExternal(ObjectOutput out)
Writes the id of the object (node or data object) that is represented by this entry to the specified stream. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private DBID id
Constructor Detail |
---|
public AbstractLeafEntry()
protected AbstractLeafEntry(DBID id)
id
- the id of the object (node or data object) represented by this
entry.Method Detail |
---|
public final boolean isLeafEntry()
Entry
isLeafEntry
in interface Entry
public DBID getDBID()
LeafEntry
getDBID
in interface LeafEntry
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
ClassNotFoundException
- If the class for an object being restored
cannot be found.
IOException
public boolean equals(Object o)
equals
in class Object
o
- the object to be tested
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |