Class HeapPointReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, PointReader

    public final class HeapPointReader
    extends java.lang.Object
    implements PointReader
    Utility class to read buffered points from in-heap arrays.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  HeapPointReader.HeapPointValue
      Reusable implementation for a point value on-heap
    • Constructor Summary

      Constructors 
      Constructor Description
      HeapPointReader​(BKDConfig config, byte[] block, int start, int end)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean next()
      Returns false once iteration is done, else true.
      PointValue pointValue()
      Sets the packed value in the provided ByteRef
      • Methods inherited from class java.lang.Object

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

      • HeapPointReader

        public HeapPointReader​(BKDConfig config,
                               byte[] block,
                               int start,
                               int end)
    • Method Detail

      • next

        public boolean next()
        Description copied from interface: PointReader
        Returns false once iteration is done, else true.
        Specified by:
        next in interface PointReader
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable