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(File file)
Constructs a ByteSequencesWriter to the provided File
|
public OfflineSorter.ByteSequencesWriter(File file) throws IOException
IOException
public OfflineSorter.ByteSequencesWriter(DataOutput os)
public void write(BytesRef ref) throws IOException
IOException
write(byte[], int, int)
public void write(byte[] bytes) throws IOException
IOException
write(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.
IOException
public void close() throws IOException
DataOutput
if it is Closeable
.close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.