Package org.apache.pinot.spi.stream
Interface StreamDataDecoder
-
- All Known Implementing Classes:
StreamDataDecoderImpl
public interface StreamDataDecoderA decoder forStreamMessage
-
-
Method Summary
Modifier and Type Method Description StreamDataDecoderResultdecode(StreamMessage message)Decodes aStreamMessagePlease note that the expectation is that the implementations of this class should never throw an exception.
-
-
-
Method Detail
-
decode
StreamDataDecoderResult decode(StreamMessage message)
Decodes aStreamMessagePlease note that the expectation is that the implementations of this class should never throw an exception. Instead, it should encapsulate the exception within theStreamDataDecoderResultobject.- Parameters:
message-StreamMessagethat contains the data payload and optionally, a key and row metadata- Returns:
StreamDataDecoderResultthat either contains the decoded row or the exception
-
-