public interface RecordSerializer<T extends 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 serializeIOException
RecordSerializer.SerializationResult continueWritingWithNextBufferBuilder(BufferBuilder bufferBuilder) throws IOException
bufferBuilder
- the new target buffer to useIOException
void clear()
boolean hasSerializedData()
BufferBuilder
.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.