Class CSVMessageDecoder
- java.lang.Object
-
- org.apache.pinot.plugin.inputformat.csv.CSVMessageDecoder
-
- All Implemented Interfaces:
StreamMessageDecoder<byte[]>
public class CSVMessageDecoder extends Object implements StreamMessageDecoder<byte[]>
-
-
Field Summary
-
Fields inherited from interface org.apache.pinot.spi.stream.StreamMessageDecoder
RECORD_EXTRACTOR_CONFIG_CONFIG_KEY, RECORD_EXTRACTOR_CONFIG_KEY
-
-
Constructor Summary
Constructors Constructor Description CSVMessageDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericRowdecode(byte[] payload, int offset, int length, GenericRow destination)GenericRowdecode(byte[] payload, GenericRow destination)voidinit(Map<String,String> props, Set<String> fieldsToRead, String topicName)
-
-
-
Method Detail
-
init
public void init(Map<String,String> props, Set<String> fieldsToRead, String topicName) throws Exception
- Specified by:
initin interfaceStreamMessageDecoder<byte[]>- Throws:
Exception
-
decode
public GenericRow decode(byte[] payload, GenericRow destination)
- Specified by:
decodein interfaceStreamMessageDecoder<byte[]>
-
decode
public GenericRow decode(byte[] payload, int offset, int length, GenericRow destination)
- Specified by:
decodein interfaceStreamMessageDecoder<byte[]>
-
-