|
|
|||||||||||||||||||||
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.AbstractEntry de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.MTreeLeafEntry<D>
public class MTreeLeafEntry<D extends Distance<D>>
Represents an entry in a leaf node of an M-Tree. A MTreeLeafEntry consists of an id (representing the unique id of the underlying object in the database) and the distance from the data object to its parent routing object in the M-Tree.
Field Summary | |
---|---|
private D |
parentDistance
The distance from the underlying data object to its parent's routing object. |
Constructor Summary | |
---|---|
MTreeLeafEntry()
Empty constructor for serialization purposes. |
|
MTreeLeafEntry(Integer objectID,
D parentDistance)
Provides a new MTreeLeafEntry object with the given parameters. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
D |
getCoveringRadius()
Returns null. |
D |
getParentDistance()
Returns the distance from the underlying data object to its parent's routing object. |
Integer |
getRoutingObjectID()
Returns the id of the underlying database object of this entry. |
boolean |
isLeafEntry()
Returns true if this entry is a leaf entry, false otherwise. |
void |
readExternal(ObjectInput in)
Calls the super method and reads the parentDistance of this entry from the specified input stream. |
void |
setCoveringRadius(D coveringRadius)
Throws an UnsupportedOperationException. |
void |
setParentDistance(D parentDistance)
Sets the distance from the underlying data object to its parent's routing object. |
void |
setRoutingObjectID(Integer objectID)
Sets the id of the underlying database object of this entry. |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the parentDistance of this entry to the specified stream. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractEntry |
---|
getID, hashCode, setID, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.Entry |
---|
getID, setID |
Field Detail |
---|
private D extends Distance<D> parentDistance
Constructor Detail |
---|
public MTreeLeafEntry()
public MTreeLeafEntry(Integer objectID, D parentDistance)
objectID
- the id of the underlying data objectparentDistance
- the distance from the underlying data object to its parent's routing objectMethod Detail |
---|
public final Integer getRoutingObjectID()
getRoutingObjectID
in interface MTreeEntry<D extends Distance<D>>
public final void setRoutingObjectID(Integer objectID)
setRoutingObjectID
in interface MTreeEntry<D extends Distance<D>>
objectID
- the id to be setpublic final D getParentDistance()
getParentDistance
in interface MTreeEntry<D extends Distance<D>>
public final void setParentDistance(D parentDistance)
setParentDistance
in interface MTreeEntry<D extends Distance<D>>
parentDistance
- the distance to be setpublic D getCoveringRadius()
getCoveringRadius
in interface MTreeEntry<D extends Distance<D>>
public void setCoveringRadius(D coveringRadius)
setCoveringRadius
in interface MTreeEntry<D extends Distance<D>>
coveringRadius
- the covering radius to be set
UnsupportedOperationException
public final boolean isLeafEntry()
isLeafEntry
in interface Entry
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractEntry
out
- the stream to write the object to
IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractEntry
in
- the stream to read data from in order to restore the object
IOException
- if I/O errors occur
ClassNotFoundException
- If the class for an object being restored cannot be found.public boolean equals(Object o)
equals
in class AbstractEntry
o
- the object to be tested
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |