Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte @Nullable [] map​(org.apache.beam.sdk.values.WindowedValue<V> 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

      • 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:
        map in interface edu.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:
        prepare in interface edu.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