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
IOException
public ByteSequencesWriter(DataOutput os)
public void write(BytesRef ref) throws IOException
IOException
public void write(byte[] bytes) throws IOException
IOException
public void write(byte[] bytes, int off, int len) throws IOException
IOException
public void close() throws IOException
DataOutput
if it is Closeable
.close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.