Package org.apache.pinot.spi.stream
Class StreamDataDecoderImpl
- java.lang.Object
-
- org.apache.pinot.spi.stream.StreamDataDecoderImpl
-
- All Implemented Interfaces:
StreamDataDecoder
public class StreamDataDecoderImpl extends Object implements StreamDataDecoder
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEADER_KEY_PREFIXstatic StringKEYstatic StringMETADATA_KEY_PREFIX
-
Constructor Summary
Constructors Constructor Description StreamDataDecoderImpl(StreamMessageDecoder valueDecoder)
-
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.
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
HEADER_KEY_PREFIX
public static final String HEADER_KEY_PREFIX
- See Also:
- Constant Field Values
-
METADATA_KEY_PREFIX
public static final String METADATA_KEY_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamDataDecoderImpl
public StreamDataDecoderImpl(StreamMessageDecoder valueDecoder)
-
-
Method Detail
-
decode
public StreamDataDecoderResult decode(StreamMessage message)
Description copied from interface:StreamDataDecoderDecodes 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.- Specified by:
decodein interfaceStreamDataDecoder- Parameters:
message-StreamMessagethat contains the data payload and optionally, a key and row metadata- Returns:
StreamDataDecoderResultthat either contains the decoded row or the exception
-
-