public class ElemToBytesFunction<V>
extends java.lang.Object
implements edu.iu.dsc.tws.api.tset.fn.MapFunc<byte[],org.apache.beam.sdk.util.WindowedValue<V>>
Constructor and Description |
---|
ElemToBytesFunction() |
ElemToBytesFunction(org.apache.beam.sdk.util.WindowedValue.WindowedValueCoder<V> wvCoder) |
Modifier and Type | Method and Description |
---|---|
@Nullable byte[] |
map(org.apache.beam.sdk.util.WindowedValue<V> input) |
void |
prepare(edu.iu.dsc.tws.api.tset.TSetContext context) |
protected java.lang.Object |
readResolve() |
public ElemToBytesFunction()
public ElemToBytesFunction(org.apache.beam.sdk.util.WindowedValue.WindowedValueCoder<V> wvCoder)
public @Nullable byte[] map(org.apache.beam.sdk.util.WindowedValue<V> input)
map
in interface edu.iu.dsc.tws.api.tset.fn.MapFunc<byte[],org.apache.beam.sdk.util.WindowedValue<V>>
public void prepare(edu.iu.dsc.tws.api.tset.TSetContext context)
prepare
in interface edu.iu.dsc.tws.api.tset.fn.TFunction<byte[],org.apache.beam.sdk.util.WindowedValue<V>>
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException