Class ByteToWindowFunction<K,​V>

  • All Implemented Interfaces:
    edu.iu.dsc.tws.api.compute.modifiers.Closable, edu.iu.dsc.tws.api.tset.fn.MapFunc<org.apache.beam.sdk.values.KV<K,​java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<V>>>,​edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],​java.util.Iterator<byte[]>>>, edu.iu.dsc.tws.api.tset.fn.TFunction<org.apache.beam.sdk.values.KV<K,​java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<V>>>,​edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],​java.util.Iterator<byte[]>>>, java.io.Serializable

    public class ByteToWindowFunction<K,​V>
    extends java.lang.Object
    implements edu.iu.dsc.tws.api.tset.fn.MapFunc<org.apache.beam.sdk.values.KV<K,​java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<V>>>,​edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],​java.util.Iterator<byte[]>>>
    ByteToWindow function.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteToWindowFunction()  
      ByteToWindowFunction​(org.apache.beam.sdk.coders.Coder<K> inputKeyCoder, org.apache.beam.sdk.values.WindowedValues.WindowedValueCoder<V> wvCoder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.beam.sdk.values.KV<K,​java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<V>>> map​(edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],​java.util.Iterator<byte[]>> input)  
      void prepare​(edu.iu.dsc.tws.api.tset.TSetContext context)  
      protected java.lang.Object readResolve()  
      • 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
      • Methods inherited from interface edu.iu.dsc.tws.api.tset.fn.TFunction

        close
    • Constructor Detail

      • ByteToWindowFunction

        public ByteToWindowFunction()
      • ByteToWindowFunction

        public ByteToWindowFunction​(org.apache.beam.sdk.coders.Coder<K> inputKeyCoder,
                                    org.apache.beam.sdk.values.WindowedValues.WindowedValueCoder<V> wvCoder)
    • Method Detail

      • map

        public org.apache.beam.sdk.values.KV<K,​java.lang.Iterable<org.apache.beam.sdk.values.WindowedValue<V>>> map​(edu.iu.dsc.tws.api.comms.structs.Tuple<byte[],​java.util.Iterator<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 java.lang.Object readResolve()
                                        throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException