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