public static class SortFns.AvroGenericFn<V extends Tuple> extends MapFn<V,org.apache.avro.generic.GenericRecord>
GenericRecord
instance.Constructor and Description |
---|
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, scaleFactor
cleanup, configure, disableDeepCopy, setConfiguration, setContext
public void initialize()
DoFn
DoFn.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 © 2016 The Apache Software Foundation. All rights reserved.