public static class OfflineSorter.ByteSequencesWriter extends Object implements Closeable
OfflineSorter.ByteSequencesReader.| Constructor and Description |
|---|
OfflineSorter.ByteSequencesWriter(DataOutput os)
Constructs a ByteSequencesWriter to the provided DataOutput
|
OfflineSorter.ByteSequencesWriter(Path path)
Constructs a ByteSequencesWriter to the provided Path
|
public OfflineSorter.ByteSequencesWriter(Path path) throws IOException
IOExceptionpublic OfflineSorter.ByteSequencesWriter(DataOutput os)
public void write(BytesRef ref) throws IOException
IOExceptionwrite(byte[], int, int)public void write(byte[] bytes)
throws IOException
IOExceptionwrite(byte[], int, int)public void write(byte[] bytes,
int off,
int len)
throws IOException
The length is written as a short, followed
by the bytes.
IOExceptionpublic void close()
throws IOException
DataOutput if it is Closeable.close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.