Class Sort.ByteSequencesReader

    • Method Detail

      • read

        public boolean read​(org.apache.lucene.util.BytesRef ref)
                     throws IOException
        Reads the next entry into the provided BytesRef. The internal storage is resized if needed.
        Returns:
        Returns false if EOF occurred when trying to read the header of the next sequence. Returns true otherwise.
        Throws:
        EOFException - if the file ends before the full sequence is read.
        IOException
      • read

        public byte[] read()
                    throws IOException
        Reads the next entry and returns it if successful.
        Returns:
        Returns null if EOF occurred before the next entry could be read.
        Throws:
        EOFException - if the file ends before the full sequence is read.
        IOException
        See Also:
        read(BytesRef)