Class NodeArrayAdapter
- java.lang.Object
-
- elki.index.tree.spatial.rstarvariants.util.NodeArrayAdapter
-
- All Implemented Interfaces:
elki.utilities.datastructures.arraylike.ArrayAdapter<SpatialEntry,elki.index.tree.AbstractNode<? extends SpatialEntry>>
public class NodeArrayAdapter extends java.lang.Object implements elki.utilities.datastructures.arraylike.ArrayAdapter<SpatialEntry,elki.index.tree.AbstractNode<? extends SpatialEntry>>
Access the entries of a node as array-like.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static NodeArrayAdapterSTATICStatic adapter.
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodeArrayAdapter()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpatialEntryget(elki.index.tree.AbstractNode<? extends SpatialEntry> array, int off)intsize(elki.index.tree.AbstractNode<? extends SpatialEntry> array)
-
-
-
Field Detail
-
STATIC
public static final NodeArrayAdapter STATIC
Static adapter.
-
-
Method Detail
-
size
public int size(elki.index.tree.AbstractNode<? extends SpatialEntry> array)
- Specified by:
sizein interfaceelki.utilities.datastructures.arraylike.ArrayAdapter<SpatialEntry,elki.index.tree.AbstractNode<? extends SpatialEntry>>
-
get
public SpatialEntry get(elki.index.tree.AbstractNode<? extends SpatialEntry> array, int off) throws java.lang.IndexOutOfBoundsException
- Specified by:
getin interfaceelki.utilities.datastructures.arraylike.ArrayAdapter<SpatialEntry,elki.index.tree.AbstractNode<? extends SpatialEntry>>- Throws:
java.lang.IndexOutOfBoundsException
-
-