public class StringStreamEventDecoder extends Object implements co.cask.cdap.api.stream.StreamEventDecoder<LongWritable,String>
StreamEventDecoder that decodes StreamEvent into LongWritable as key and String as
value for Mapper input. The key carries the event timestamp, while the text value is a UTF-8 decode of the
event body.| Constructor and Description |
|---|
StringStreamEventDecoder() |
| Modifier and Type | Method and Description |
|---|---|
co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,String> |
decode(co.cask.cdap.api.flow.flowlet.StreamEvent event,
co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,String> result) |
public co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,String> decode(co.cask.cdap.api.flow.flowlet.StreamEvent event, co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,String> result)
decode in interface co.cask.cdap.api.stream.StreamEventDecoder<LongWritable,String>Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.