public interface Converter<K,V,S,T> extends Serializable
DoFn
, or takes the output of a DoFn
and write it to the
output key/values.Modifier and Type | Method and Description |
---|---|
boolean |
applyPTypeTransforms()
If true, convert the inputs or outputs from this
Converter instance
before (for outputs) or after (for inputs) using the associated PType#getInputMapFn
and PType#getOutputMapFn calls. |
S |
convertInput(K key,
V value) |
T |
convertIterableInput(K key,
Iterable<V> value) |
Class<K> |
getKeyClass() |
Class<V> |
getValueClass() |
K |
outputKey(S value) |
V |
outputValue(S value) |
Copyright © 2016 The Apache Software Foundation. All rights reserved.