public abstract class AbstractDirectoryEntry extends Object implements DirectoryEntry
Modifier and Type | Field and Description |
---|---|
private Integer |
id
Holds the id of the object (node or data object) represented by this entry.
|
Modifier | Constructor and Description |
---|---|
|
AbstractDirectoryEntry()
Empty constructor for serialization purposes.
|
protected |
AbstractDirectoryEntry(Integer id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
Integer |
getEntryID()
Returns the id of the node or data object that is represented by this
entry.
|
Integer |
getPageID()
Returns the id of the node or data object that is represented by this
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.
|
private Integer id
public AbstractDirectoryEntry()
protected AbstractDirectoryEntry(Integer id)
id
- the id of the object (node or data object) represented by this
entry.public final boolean isLeafEntry()
Entry
isLeafEntry
in interface Entry
public final Integer getPageID()
getPageID
in interface DirectoryEntry
public final Integer getEntryID()
getEntryID
in interface DirectoryEntry
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)
public int hashCode()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.