public static class Sort.ByteSequencesReader extends Object implements Closeable
Sort.ByteSequencesWriter
.Constructor and Description |
---|
Sort.ByteSequencesReader(DataInput is) |
Sort.ByteSequencesReader(File file) |
public Sort.ByteSequencesReader(File file) throws IOException
IOException
public Sort.ByteSequencesReader(DataInput is)
public boolean read(BytesRef ref) throws IOException
BytesRef
. The internal
storage is resized if needed.false
if EOF occurred when trying to read
the header of the next sequence. Returns true
otherwise.EOFException
- if the file ends before the full sequence is read.IOException
public byte[] read() throws IOException
null
if EOF occurred before the next entry
could be read.EOFException
- if the file ends before the full sequence is read.IOException
read(BytesRef)
public void close() throws IOException
close
in interface Closeable
IOException