Class ByteToWindowFunctionPrimitive<K,V>

java.lang.Object
org.apache.beam.runners.twister2.translators.functions.ByteToWindowFunctionPrimitive<K,V>
All Implemented Interfaces:
edu.iu.dsc.tws.api.compute.modifiers.Closable, edu.iu.dsc.tws.api.tset.fn.MapFunc<WindowedValue<KV<K,V>>,edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],byte[]>>, edu.iu.dsc.tws.api.tset.fn.TFunction<WindowedValue<KV<K,V>>,edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],byte[]>>, Serializable

public class ByteToWindowFunctionPrimitive<K,V> extends Object implements edu.iu.dsc.tws.api.tset.fn.MapFunc<WindowedValue<KV<K,V>>,edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],byte[]>>
ByteToWindow function.
See Also:
  • Constructor Details

    • ByteToWindowFunctionPrimitive

      public ByteToWindowFunctionPrimitive()
    • ByteToWindowFunctionPrimitive

      public ByteToWindowFunctionPrimitive(Coder<K> inputKeyCoder, WindowedValues.WindowedValueCoder<V> wvCoder)
  • Method Details

    • map

      public WindowedValue<KV<K,V>> map(edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],byte[]> input)
      Specified by:
      map in interface edu.iu.dsc.tws.api.tset.fn.MapFunc<K,V>
    • prepare

      public void prepare(edu.iu.dsc.tws.api.tset.TSetContext context)
      Specified by:
      prepare in interface edu.iu.dsc.tws.api.tset.fn.TFunction<K,V>
    • readResolve

      protected Object readResolve() throws ObjectStreamException
      Throws:
      ObjectStreamException