public static class SortFns.AvroGenericFn<V extends Tuple> extends MapFn<V,org.apache.avro.generic.GenericRecord>
GenericRecord instance.| Constructor and Description |
|---|
SortFns.AvroGenericFn(int[] indices,
org.apache.avro.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize()
Initialize this DoFn.
|
org.apache.avro.generic.GenericRecord |
map(V input)
Maps the given input into an instance of the output type.
|
process, scaleFactorcleanup, configure, disableDeepCopy, setConfiguration, setContextpublic SortFns.AvroGenericFn(int[] indices,
org.apache.avro.Schema schema)
public void initialize()
DoFnDoFn.process(Object, Emitter) is triggered. Subclasses may override
this method to do appropriate initialization.
Called during the setup of the job instance this DoFn is associated
with.
initialize in class DoFn<V extends Tuple,org.apache.avro.generic.GenericRecord>Copyright © 2015 The Apache Software Foundation. All Rights Reserved.