Class ElemToBytesFunction<V>
- java.lang.Object
-
- org.apache.beam.runners.twister2.translators.functions.ElemToBytesFunction<V>
-
- All Implemented Interfaces:
edu.iu.dsc.tws.api.compute.modifiers.Closable,edu.iu.dsc.tws.api.tset.fn.MapFunc<byte[],org.apache.beam.sdk.values.WindowedValue<V>>,edu.iu.dsc.tws.api.tset.fn.TFunction<byte[],org.apache.beam.sdk.values.WindowedValue<V>>,java.io.Serializable
public class ElemToBytesFunction<V> extends java.lang.Object implements edu.iu.dsc.tws.api.tset.fn.MapFunc<byte[],org.apache.beam.sdk.values.WindowedValue<V>>Map to tuple function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElemToBytesFunction()ElemToBytesFunction(org.apache.beam.sdk.values.WindowedValues.WindowedValueCoder<V> wvCoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte @Nullable []map(org.apache.beam.sdk.values.WindowedValue<V> input)voidprepare(edu.iu.dsc.tws.api.tset.TSetContext context)protected java.lang.ObjectreadResolve()
-
-
-
Constructor Detail
-
ElemToBytesFunction
public ElemToBytesFunction()
-
ElemToBytesFunction
public ElemToBytesFunction(org.apache.beam.sdk.values.WindowedValues.WindowedValueCoder<V> wvCoder)
-
-
Method Detail
-
map
public byte @Nullable [] map(org.apache.beam.sdk.values.WindowedValue<V> input)
- Specified by:
mapin interfaceedu.iu.dsc.tws.api.tset.fn.MapFunc<byte[],org.apache.beam.sdk.values.WindowedValue<V>>
-
prepare
public void prepare(edu.iu.dsc.tws.api.tset.TSetContext context)
- Specified by:
preparein interfaceedu.iu.dsc.tws.api.tset.fn.TFunction<byte[],org.apache.beam.sdk.values.WindowedValue<V>>
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
-