Class DeLiCluLeafEntry
- java.lang.Object
-
- elki.index.tree.spatial.SpatialPointLeafEntry
-
- elki.index.tree.spatial.rstarvariants.deliclu.DeLiCluLeafEntry
-
- All Implemented Interfaces:
FeatureVector<java.lang.Number>,NumberVector,SpatialComparable,LeafEntry,DeLiCluEntry,SpatialEntry,java.io.Externalizable,java.io.Serializable
public class DeLiCluLeafEntry extends SpatialPointLeafEntry implements DeLiCluEntry
Defines the requirements for a leaf entry in an DeLiClu-Tree node. Additionally to a leaf entry in an R*-Tree two boolean flags that indicate whether this entry's node contains handled or unhandled data objects.- Since:
- 0.1
- Author:
- Elke Achtert
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.data.NumberVector
NumberVector.Factory<V extends NumberVector>
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasHandledIndicates that the node (or its child nodes) which is represented by this entry contains handled data objects.private booleanhasUnhandledIndicates that the node (or its child nodes) which is represented by this entry contains unhandled data objects.private static longserialVersionUID-
Fields inherited from interface elki.data.FeatureVector
TYPE
-
Fields inherited from interface elki.data.NumberVector
ATTRIBUTE_SEPARATOR, FIELD, FIELD_1D, FIELD_2D, VARIABLE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description DeLiCluLeafEntry()Empty constructor for serialization purposes.DeLiCluLeafEntry(DBID id, NumberVector vector)Constructs a new LeafEntry object with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasHandled()Returns true, if the node (or its child nodes) which is represented by this entry contains handled data objects.booleanhasUnhandled()Returns true, if the node (or its child nodes) which is represented by this entry contains unhandled data objects.voidsetHasHandled(boolean hasHandled)Sets the flag to marks the node (or its child nodes) which is represented by this entry to contain handled data objects.voidsetHasUnhandled(boolean hasUnhandled)Sets the flag to marks the node (or its child nodes) which is represented by this entry to contain unhandled data objects.java.lang.StringtoString()Returns the id as a string representation of this entry.-
Methods inherited from class elki.index.tree.spatial.SpatialPointLeafEntry
doubleValue, equals, getDBID, getDimensionality, hashCode, longValue, readExternal, toArray, writeExternal
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface elki.data.NumberVector
byteValue, floatValue, getMax, getMin, getValue, intValue, shortValue
-
Methods inherited from interface elki.data.spatial.SpatialComparable
getDimensionality
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
hasHandled
private boolean hasHandled
Indicates that the node (or its child nodes) which is represented by this entry contains handled data objects.
-
hasUnhandled
private boolean hasUnhandled
Indicates that the node (or its child nodes) which is represented by this entry contains unhandled data objects.
-
-
Constructor Detail
-
DeLiCluLeafEntry
public DeLiCluLeafEntry()
Empty constructor for serialization purposes.
-
DeLiCluLeafEntry
public DeLiCluLeafEntry(DBID id, NumberVector vector)
Constructs a new LeafEntry object with the given parameters.- Parameters:
id- the unique id of the underlying data objectvector- the vector to store
-
-
Method Detail
-
hasHandled
public boolean hasHandled()
Description copied from interface:DeLiCluEntryReturns true, if the node (or its child nodes) which is represented by this entry contains handled data objects.- Specified by:
hasHandledin interfaceDeLiCluEntry- Returns:
- true, if the node (or its child nodes) which is represented by this entry contains handled data objects, false otherwise.
-
hasUnhandled
public boolean hasUnhandled()
Description copied from interface:DeLiCluEntryReturns true, if the node (or its child nodes) which is represented by this entry contains unhandled data objects.- Specified by:
hasUnhandledin interfaceDeLiCluEntry- Returns:
- true, if the node (or its child nodes) which is represented by this entry contains unhandled data objects, false otherwise.
-
setHasHandled
public void setHasHandled(boolean hasHandled)
Description copied from interface:DeLiCluEntrySets the flag to marks the node (or its child nodes) which is represented by this entry to contain handled data objects.- Specified by:
setHasHandledin interfaceDeLiCluEntry- Parameters:
hasHandled- the flag to be set
-
setHasUnhandled
public void setHasUnhandled(boolean hasUnhandled)
Description copied from interface:DeLiCluEntrySets the flag to marks the node (or its child nodes) which is represented by this entry to contain unhandled data objects.- Specified by:
setHasUnhandledin interfaceDeLiCluEntry- Parameters:
hasUnhandled- the flag to be set
-
toString
public java.lang.String toString()
Returns the id as a string representation of this entry.- Specified by:
toStringin interfaceFeatureVector<java.lang.Number>- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of this entry
-
-