|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.index.tree.AbstractEntry
de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialDirectoryEntry
public class SpatialDirectoryEntry
Represents an entry in a directory node of a spatial index. A SpatialDirectoryEntry consists of an id (representing the unique id of the underlying spatial node) and the minimum bounding rectangle of the underlying spatial node.
Field Summary | |
---|---|
private HyperBoundingBox |
mbr
The minimum bounding rectangle of the underlying spatial node. |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
SpatialDirectoryEntry()
Empty constructor for serialization purposes. |
|
SpatialDirectoryEntry(int id,
HyperBoundingBox mbr)
Constructs a new SpatialDirectoryEntry object with the given parameters. |
Method Summary | |
---|---|
int |
getDimensionality()
Returns the dimensionality of the object. |
double |
getMax(int dimension)
Returns the maximum coordinate at the specified dimension. |
HyperBoundingBox |
getMBR()
Returns the MBR of the underlying spatial object of this entry. |
double |
getMin(int dimension)
Returns the minimum coordinate at the specified dimension. |
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)
Calls the super method and reads the MBR object of this entry from the specified input stream. |
void |
setMBR(HyperBoundingBox mbr)
Sets the MBR of this entry. |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the MBR object of this entry to the specified output stream. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.AbstractEntry |
---|
equals, 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 static final long serialVersionUID
private HyperBoundingBox mbr
Constructor Detail |
---|
public SpatialDirectoryEntry()
public SpatialDirectoryEntry(int id, HyperBoundingBox mbr)
id
- the unique id of the underlying spatial nodembr
- the minimum bounding rectangle of the underlying spatial nodeMethod Detail |
---|
public boolean isLeafEntry()
Entry
isLeafEntry
in interface Entry
public HyperBoundingBox getMBR()
SpatialEntry
getMBR
in interface SpatialEntry
public int getDimensionality()
SpatialComparable
getDimensionality
in interface SpatialComparable
public double getMin(int dimension)
SpatialComparable
getMin
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 1 ≤ dimension ≤ getDimensionality()
public double getMax(int dimension)
SpatialComparable
getMax
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 1 ≤ dimension ≤ getDimensionality()
public void setMBR(HyperBoundingBox mbr)
setMBR
in interface SpatialEntry
mbr
- the MBR to be setpublic 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.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |