
public class SpatialDirectoryEntry extends AbstractDirectoryEntry implements SpatialEntry
| Modifier and Type | Field and Description | 
|---|---|
| private ModifiableHyperBoundingBox | mbrThe minimum bounding rectangle of the underlying spatial node. | 
| private static long | serialVersionUID | 
| Constructor and Description | 
|---|
| SpatialDirectoryEntry()Empty constructor for serialization purposes. | 
| SpatialDirectoryEntry(int id,
                     ModifiableHyperBoundingBox mbr)Constructs a new SpatialDirectoryEntry object with the given parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | extendMBR(SpatialComparable responsibleMBR)Extend the MBR of this node. | 
| int | getDimensionality()Returns the dimensionality of the object. | 
| double | getMax(int dimension)Returns the maximum coordinate at the specified dimension. | 
| double | getMin(int dimension)Returns the minimum coordinate at the specified dimension. | 
| boolean | hasMBR()Test whether this entry already has an MBR. | 
| void | readExternal(ObjectInput in)Calls the super method and reads the MBR object of this entry from the
 specified input stream. | 
| void | setMBR(ModifiableHyperBoundingBox 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. | 
equals, getEntryID, getPageID, hashCode, isLeafEntry, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisLeafEntryprivate static final long serialVersionUID
private ModifiableHyperBoundingBox mbr
public SpatialDirectoryEntry()
public SpatialDirectoryEntry(int id,
                     ModifiableHyperBoundingBox mbr)
id - the unique id of the underlying spatial nodembr - the minimum bounding rectangle of the underlying spatial nodepublic int getDimensionality()
SpatialComparablegetDimensionality in interface SpatialComparablepublic double getMin(int dimension)
SpatialComparablegetMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
        where 0 ≤ dimension < getDimensionality()public double getMax(int dimension)
SpatialComparablegetMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
        where 0 ≤ dimension < getDimensionality()public boolean hasMBR()
public void setMBR(ModifiableHyperBoundingBox mbr)
mbr - the MBR to be setpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractDirectoryEntryout - the stream to write the object toIOException - Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractDirectoryEntryin - the stream to read data from in order to restore the objectIOException - if I/O errors occurClassNotFoundException - If the class for an object being restored
         cannot be found.public boolean extendMBR(SpatialComparable responsibleMBR)
responsibleMBR -