public static class Sort.ByteSequencesReader extends Object implements Closeable
Sort.ByteSequencesWriter.| Constructor and Description |
|---|
ByteSequencesReader(DataInput is)
Constructs a ByteSequencesReader from the provided DataInput
|
ByteSequencesReader(File file)
Constructs a ByteSequencesReader from the provided File
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
|
byte[] |
read()
Reads the next entry and returns it if successful.
|
boolean |
read(BytesRef ref)
Reads the next entry into the provided
BytesRef. |
public ByteSequencesReader(File file) throws IOException
IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionread(BytesRef)public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved