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 SummaryConstructorsConstructorDescriptionAvroSerializer(String schemaString, List<String> fieldNames) AvroSerializer Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionwrite(List<Object> data, ByteBuffer buffer) Serialize the data to a ByteBuffer.
- 
Constructor Details- 
AvroSerializerAvroSerializer Constructor.- Parameters:
- schemaString- schema string
- fieldNames- field names
 
 
- 
- 
Method Details- 
writeDescription 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 interface- IOutputSerializer
- Returns:
- A ByteBuffer contains the serialized result.
 
 
-