public static class Sort.ByteSequencesWriter extends Object implements Closeable
Sort.ByteSequencesReader.| Constructor and Description |
|---|
ByteSequencesWriter(DataOutput os) |
ByteSequencesWriter(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the provided
DataOutput if it is Closeable. |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
void |
write(BytesRef ref) |
public ByteSequencesWriter(File file) throws IOException
IOExceptionpublic ByteSequencesWriter(DataOutput os)
public void write(BytesRef ref) throws IOException
IOExceptionpublic void write(byte[] bytes)
throws IOException
IOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
IOExceptionpublic void close()
throws IOException
DataOutput if it is Closeable.close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.