Interface EventStreamEncoder
- All Known Implementing Classes:
ByteArrayEncoder,JsonObjectEncoder,PassThroughEncoder,PyDictionaryEncoder,SparkplugBEncoder,StringEncoder
public interface EventStreamEncoder
Converts between data types.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionConvertsdatato another type defined by theEventStreamEncoder.
-
Method Details
-
encode
Convertsdatato another type defined by theEventStreamEncoder. Supported input types should always include the PyObject equivalent where possible, since Filter and Transforms will generally be outputting PyObjects.- Parameters:
data- Data to encode.- Returns:
- Encoded data
- Throws:
EncoderException- when it's not possible to encodedatato theEventStreamEncodertype.
-