public class GoogleCloudStorageLevelDbOutputWriter extends LevelDbOutputWriter
GoogleCloudStorageFileOutputWriter
and pads blocks to GCS write boundaries on end of slice.
This is needed because GCS requires data to be passed in in 256kb but LevelDb uses 32kb
blocks this class provides a way get this class to pad the output by writing empty blocks.Constructor and Description |
---|
GoogleCloudStorageLevelDbOutputWriter(OutputWriter<ByteBuffer> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
endSlice()
Prepares the writer for possible serialization.
|
beginSlice, endShard, getDelegate, getNumBlocksWritten, write
allowSliceRetry, beginShard, estimateMemoryRequirement, getContext, setContext
cleanup, close, open
public GoogleCloudStorageLevelDbOutputWriter(OutputWriter<ByteBuffer> delegate)
public void endSlice() throws IOException
OutputWriter
endSlice
in class LevelDbOutputWriter
IOException
- in the event of failureCopyright © 2015 Google. All rights reserved.