Package com.solace.serdes.avro
Class AvroHeaders
- java.lang.Object
-
- com.solace.serdes.avro.AvroHeaders
-
public class AvroHeaders extends Object
A class that contains Avro specific header properties. These properties are added and/or used byAbstractSerializer.serialize(String, Object, Map)
andAbstractDeserializer.deserialize(String, byte[], Map)
.- See Also:
SerdeHeaders
-
-
Field Detail
-
AVRO_ENCODING_TYPE
public static final String AVRO_ENCODING_TYPE
A string valued encoding type used by Avro. Used byAbstractSerializer.serialize(String, Object, Map)
to write the property into the headers map with the encoding type. Used byAbstractDeserializer.deserialize(String, byte[], Map)
to read from the headers map to decode using the decoding type. Valid values include "BINARY" and "JSON".
This property can be set by usingAvroProperties.ENCODING_TYPE
on serialize. And a fallback can be provided to deserialize usingAvroProperties.ENCODING_TYPE
when this property is not set.- See Also:
- Constant Field Values
-
-