public final class TextStreamEventDecoder extends Object implements co.cask.cdap.api.stream.StreamEventDecoder<LongWritable,Text>
StreamEventDecoder that decodes StreamEvent into LongWritable as key and Text 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 |
|---|
TextStreamEventDecoder() |
| Modifier and Type | Method and Description |
|---|---|
co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,Text> |
decode(co.cask.cdap.api.flow.flowlet.StreamEvent event,
co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,Text> result) |
public co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,Text> decode(co.cask.cdap.api.flow.flowlet.StreamEvent event, co.cask.cdap.api.stream.StreamEventDecoder.DecodeResult<LongWritable,Text> result)
decode in interface co.cask.cdap.api.stream.StreamEventDecoder<LongWritable,Text>Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.