public class AvroSerializer extends Object implements IOutputSerializer, Serializable
AvroSerializer uses generic(without code generation) instead of specific(with code generation) writers.
Constructor and Description |
---|
AvroSerializer(String schemaString,
List<String> fieldNames)
AvroSerializer Constructor.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
write(List<Object> data,
ByteBuffer buffer)
Serialize the data to a ByteBuffer.
|
public ByteBuffer write(List<Object> data, ByteBuffer buffer)
IOutputSerializer
Serialize the data to a ByteBuffer. The caller can pass in a ByteBuffer so that the serializer can reuse the memory.
write
in interface IOutputSerializer
Copyright © 2019 The Apache Software Foundation. All rights reserved.