Class DoFnFunction<OutputT,InputT>
java.lang.Object
org.apache.beam.runners.twister2.translators.functions.DoFnFunction<OutputT,InputT>
- All Implemented Interfaces:
edu.iu.dsc.tws.api.compute.modifiers.Closable
,edu.iu.dsc.tws.api.tset.fn.ComputeCollectorFunc<RawUnionValue,
,Iterator<WindowedValue<InputT>>> edu.iu.dsc.tws.api.tset.fn.TFunction<RawUnionValue,
,Iterator<WindowedValue<InputT>>> Serializable
public class DoFnFunction<OutputT,InputT>
extends Object
implements edu.iu.dsc.tws.api.tset.fn.ComputeCollectorFunc<RawUnionValue,Iterator<WindowedValue<InputT>>>
DoFn function.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDoFnFunction
(Twister2TranslationContext context, DoFn<InputT, OutputT> doFn, Coder<InputT> inputCoder, Map<TupleTag<?>, Coder<?>> outputCoders, List<TupleTag<?>> sideOutputs, WindowingStrategy<?, ?> windowingStrategy, Map<PCollectionView<?>, WindowingStrategy<?, ?>> sideInputs, TupleTag<OutputT> mainOutput, DoFnSchemaInformation doFnSchemaInformation, Map<TupleTag<?>, Integer> outputMap, Map<String, PCollectionView<?>> sideInputMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
compute
(Iterator<WindowedValue<InputT>> input, edu.iu.dsc.tws.api.tset.fn.RecordCollector<RawUnionValue> output) get the tag id's of all the keys.void
prepare
(edu.iu.dsc.tws.api.tset.TSetContext context) protected Object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.iu.dsc.tws.api.compute.modifiers.Closable
reset
-
Constructor Details
-
DoFnFunction
public DoFnFunction() -
DoFnFunction
public DoFnFunction(Twister2TranslationContext context, DoFn<InputT, OutputT> doFn, Coder<InputT> inputCoder, Map<TupleTag<?>, Coder<?>> outputCoders, List<TupleTag<?>> sideOutputs, WindowingStrategy<?, ?> windowingStrategy, Map<PCollectionView<?>, WindowingStrategy<?, ?>> sideInputs, TupleTag<OutputT> mainOutput, DoFnSchemaInformation doFnSchemaInformation, Map<TupleTag<?>, Integer> outputMap, Map<String, PCollectionView<?>> sideInputMapping)
-
-
Method Details
-
getSideInputKeys
get the tag id's of all the keys.- Returns:
- A Set of String key values.
-
prepare
public void prepare(edu.iu.dsc.tws.api.tset.TSetContext context) -
compute
public void compute(Iterator<WindowedValue<InputT>> input, edu.iu.dsc.tws.api.tset.fn.RecordCollector<RawUnionValue> output) -
close
public void close() -
readResolve
- Throws:
ObjectStreamException
-