public interface RecordSerializer<T extends org.apache.flink.core.io.IOReadableWritable>
| Modifier and Type | Interface and Description |
|---|---|
static class |
RecordSerializer.SerializationResult
Status of the serialization result.
|
| Modifier and Type | Method and Description |
|---|---|
RecordSerializer.SerializationResult |
addRecord(T record)
Starts serializing and copying the given record to the target buffer
(if available).
|
void |
clear()
Clear and release internal state.
|
RecordSerializer.SerializationResult |
continueWritingWithNextBufferBuilder(BufferBuilder bufferBuilder)
Sets a (next) target buffer to use and continues writing remaining data
to it until it is full.
|
boolean |
hasSerializedData() |
RecordSerializer.SerializationResult addRecord(T record) throws IOException
record - the record to serializeIOExceptionRecordSerializer.SerializationResult continueWritingWithNextBufferBuilder(BufferBuilder bufferBuilder) throws IOException
bufferBuilder - the new target buffer to useIOExceptionvoid clear()
boolean hasSerializedData()
BufferBuilder.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.