Class OfflinePointReader

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

    public final class OfflinePointReader
    extends java.lang.Object
    implements PointReader
    Reads points from disk in a fixed-with format, previously written with OfflinePointWriter.
    • Field Detail

      • countLeft

        long countLeft
      • onHeapBuffer

        byte[] onHeapBuffer
      • offset

        int offset
      • checked

        private boolean checked
      • pointsInBuffer

        private int pointsInBuffer
      • maxPointOnHeap

        private final int maxPointOnHeap
      • name

        final java.lang.String name
    • Constructor Detail

      • OfflinePointReader

        public OfflinePointReader​(BKDConfig config,
                                  Directory tempDir,
                                  java.lang.String tempFileName,
                                  long start,
                                  long length,
                                  byte[] reusableBuffer)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • next

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

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