|
|
|||||||||||||||||||||
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.SpatialLeafEntry
public class SpatialLeafEntry
Represents an entry in a leaf node of a spatial index. A SpatialLeafEntry consists of an id (representing the unique id of the underlying data object) and the values of the underlying data object.
Field Summary | |
---|---|
private static long |
serialVersionUID
|
private double[] |
values
The values of the underlying data object. |
Constructor Summary | |
---|---|
SpatialLeafEntry()
Empty constructor for serialization purposes. |
|
SpatialLeafEntry(int id,
double[] values)
Constructs a new LeafEntry 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. |
double[] |
getValues()
Returns the values of the underlying data object of this entry. |
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 values of this entry from the specified input stream. |
void |
setMBR(HyperBoundingBox mbr)
Throws an UnsupportedOperationException |
void |
writeExternal(ObjectOutput out)
Calls the super method and writes the values of this entry to the specified 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 double[] values
Constructor Detail |
---|
public SpatialLeafEntry()
public SpatialLeafEntry(int id, double[] values)
id
- the unique id of the underlying data objectvalues
- the values of the underlying data objectMethod Detail |
---|
public boolean isLeafEntry()
Entry
isLeafEntry
in interface Entry
public HyperBoundingBox getMBR()
SpatialEntry
getMBR
in interface SpatialEntry
public void setMBR(HyperBoundingBox mbr)
setMBR
in interface SpatialEntry
mbr
- the MBR to be set
UnsupportedOperationException
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 double[] getValues()
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.
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |