public class InMemoryOutputWriter<O> extends OutputWriter<O>
Constructor and Description |
---|
InMemoryOutputWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowSliceRetry() |
void |
beginShard()
Will be called once before any calls to write.
|
void |
beginSlice()
Prepares the writer for writing after possibly having gone through
serialization or deserialization.
|
void |
endShard()
Called when no more output will be written to this writer.
|
void |
endSlice()
Prepares the writer for possible serialization.
|
List<O> |
getResult() |
String |
toString() |
void |
write(O value)
Writes a value to the output.
|
cleanup, close, estimateMemoryRequirement, getContext, open, setContext
public void beginShard()
OutputWriter
beginShard
in class OutputWriter<O>
public void beginSlice()
OutputWriter
beginSlice
in class OutputWriter<O>
public void write(O value)
OutputWriter
write
in class OutputWriter<O>
public void endSlice()
OutputWriter
endSlice
in class OutputWriter<O>
public void endShard()
OutputWriter
endShard
in class OutputWriter<O>
public boolean allowSliceRetry()
allowSliceRetry
in class OutputWriter<O>
Copyright © 2015 Google. All rights reserved.