public class VSizeIndexedWriter extends MultiValueIndexedIntsWriter implements Closeable
Constructor and Description |
---|
VSizeIndexedWriter(IOPeon ioPeon,
String filenameBase,
int maxId) |
Modifier and Type | Method and Description |
---|---|
protected void |
addValues(List<Integer> val) |
void |
close() |
com.google.common.io.InputSupplier<InputStream> |
combineStreams() |
long |
getSerializedSize() |
void |
open() |
void |
write(List<Integer> ints) |
void |
writeToChannel(WritableByteChannel channel,
FileSmoosher smoosher) |
add
public void open() throws IOException
open
in interface IndexedIntsWriter
IOException
protected void addValues(List<Integer> val) throws IOException
addValues
in class MultiValueIndexedIntsWriter
IOException
public void write(List<Integer> ints) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public com.google.common.io.InputSupplier<InputStream> combineStreams()
public long getSerializedSize()
getSerializedSize
in interface IndexedIntsWriter
public void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
writeToChannel
in interface IndexedIntsWriter
IOException
Copyright © 2011–2017. All rights reserved.