Deserializers
Joule ships with the ability to parse domain types using a custom deserialiser along with standard StreamEvent deserialisers
Deserialization Specification
The DeserializerSpecification
class is used to defined how StreamEvents are serialised for downstream consumption.
Attributes
StreamEventParser
Parser interface to converts an Object to a collection of stream events.Developers are expected to provide domain specific implementations if there is a need to publish non-Joule events.
Available Implementations
Example
For the provided implementations a full package namespace is required. For the above implementations use com.fractalworks.streams.sdk.codec
AVRO
This deserializer has extra setting to support ability to load the target schema. Currently only local schema files are supported with schema registry support on request.
Example
CSV
This parser has extra optional setting to support ability to custom parsing through the use of defining a custom header.
Example
Supported Types
Following types are supported
DOUBLE, FLOAT, LONG, INTEGER, SHORT, BYTE, BOOLEAN, STRING, DATE
Custom Example
Last updated