public final class StreamFormatter
extends co.cask.cdap.etl.api.Transform<co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>
StructuredRecord into co.cask.cdap.api.flow.flowlet.StreamEvent.
This transforms formats the structured into a StreamEvent. It allows one to specify the
fields that need to be considered as HEADER and for BODY one can specify the format as CSV,
TSV, PSV and JSON.| Modifier and Type | Class and Description |
|---|---|
static class |
StreamFormatter.Config
StreamFormatter Plugin Configuration.
|
| Constructor and Description |
|---|
StreamFormatter(StreamFormatter.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(co.cask.cdap.etl.api.PipelineConfigurer pipelineConfigurer) |
void |
initialize(co.cask.cdap.etl.api.TransformContext context) |
void |
transform(co.cask.cdap.api.data.format.StructuredRecord in,
co.cask.cdap.etl.api.Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter) |
public StreamFormatter(StreamFormatter.Config config)
public void configurePipeline(co.cask.cdap.etl.api.PipelineConfigurer pipelineConfigurer)
throws IllegalArgumentException
configurePipeline in interface co.cask.cdap.etl.api.PipelineConfigurableconfigurePipeline in class co.cask.cdap.etl.api.Transform<co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>IllegalArgumentExceptionpublic void initialize(co.cask.cdap.etl.api.TransformContext context)
throws Exception
initialize in interface co.cask.cdap.etl.api.StageLifecycle<co.cask.cdap.etl.api.TransformContext>initialize in class co.cask.cdap.etl.api.Transform<co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>ExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.