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 record
static final record
-
Method Summary
Modifier and TypeMethodDescriptionConvertsdata
to another type defined by theEventStreamEncoder
.
-
Method Details
-
encode
Convertsdata
to 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 encodedata
to theEventStreamEncoder
type.
-