Class AvroSerializer
java.lang.Object
org.apache.storm.sql.runtime.serde.avro.AvroSerializer
- All Implemented Interfaces:
 Serializable,IOutputSerializer
AvroSerializer uses generic(without code generation) instead of specific(with code generation) writers.
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionAvroSerializer(String schemaString, List<String> fieldNames) AvroSerializer Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionwrite(List<Object> data, ByteBuffer buffer) Serialize the data to a ByteBuffer. 
- 
Constructor Details
- 
AvroSerializer
AvroSerializer Constructor.- Parameters:
 schemaString- schema stringfieldNames- field names
 
 - 
 - 
Method Details
- 
write
Description copied from interface:IOutputSerializerSerialize the data to a ByteBuffer. The caller can pass in a ByteBuffer so that the serializer can reuse the memory.- Specified by:
 writein interfaceIOutputSerializer- Returns:
 - A ByteBuffer contains the serialized result.
 
 
 -