Class OfflineSorter.ByteSequencesReader

    • Constructor Detail

      • ByteSequencesReader

        public ByteSequencesReader​(ChecksumIndexInput in,
                                   java.lang.String name)
        Constructs a ByteSequencesReader from the provided IndexInput
    • Method Detail

      • next

        public BytesRef next()
                      throws java.io.IOException
        Reads the next entry into the provided BytesRef. The internal storage is resized if needed.
        Specified by:
        next in interface BytesRefIterator
        Returns:
        Returns false if EOF occurred when trying to read the header of the next sequence. Returns true otherwise.
        Throws:
        java.io.EOFException - if the file ends before the full sequence is read.
        java.io.IOException - If there is a low-level I/O error.
      • close

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