Class 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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NodeArrayAdapter()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SpatialEntry get​(elki.index.tree.AbstractNode<? extends SpatialEntry> array, int off)  
      int size​(elki.index.tree.AbstractNode<? extends SpatialEntry> array)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeArrayAdapter

        protected NodeArrayAdapter()
        Constructor.
    • Method Detail

      • size

        public int size​(elki.index.tree.AbstractNode<? extends SpatialEntry> array)
        Specified by:
        size in interface elki.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:
        get in interface elki.utilities.datastructures.arraylike.ArrayAdapter<SpatialEntry,​elki.index.tree.AbstractNode<? extends SpatialEntry>>
        Throws:
        java.lang.IndexOutOfBoundsException