| Modifier and Type | Class and Description |
|---|---|
static class |
KVTransformations.KVSinkTransformation<IN,OUT>
Converts (stageName, input) to input
|
static class |
KVTransformations.KVSourceTransformation<IN,OUT>
Converts input to (stageName, input)
|
static class |
KVTransformations.KVWrappedTransformation<IN,OUT>
Unwraps (stageName, input) to input, applies transformation and wraps output to (stageName, output)
|
| Modifier and Type | Method and Description |
|---|---|
static Transformation |
getKVTransformation(String stageName,
String pluginType,
boolean isMapPhase,
Transformation transformation)
Creates
Transformation which adds stageName to each record being emitted from current stage,
except for BatchSink. |
public static Transformation getKVTransformation(String stageName, String pluginType, boolean isMapPhase, Transformation transformation)
Transformation which adds stageName to each record being emitted from current stage,
except for BatchSink. Each stage will strip off stageName, apply original transformation and then again
wrap record with stageName. For Joiner the record is passed with stageName.stageName - stageName which is emitting the recordpluginType - type of the stageisMapPhase - if it is map phasetransformation - transformation to be wrappedTransformation to wrap/unwrap stageNameCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.