Interface EventStreamEncoder

All Known Implementing Classes:
ByteArrayEncoder, JsonObjectEncoder, PassThroughEncoder, PyDictionaryEncoder, SparkplugBEncoder, StringEncoder

public interface EventStreamEncoder
Converts between data types.
  • Method Details

    • encode

      Object encode(Object data) throws EncoderException
      Converts data to another type defined by the EventStreamEncoder. 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 encode data to the EventStreamEncoder type.