Class Twister2SinkFunction<T>

  • All Implemented Interfaces:
    edu.iu.dsc.tws.api.compute.modifiers.Closable, edu.iu.dsc.tws.api.tset.fn.SinkFunc<T>, edu.iu.dsc.tws.api.tset.fn.TFunction<T,​T>, java.io.Serializable

    public class Twister2SinkFunction<T>
    extends java.lang.Object
    implements edu.iu.dsc.tws.api.tset.fn.SinkFunc<T>
    Sink Function that collects results.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(T value)  
      void close()  
      edu.iu.dsc.tws.api.dataset.DataPartition<?> get()  
      void prepare​(edu.iu.dsc.tws.api.tset.TSetContext context)  
      • 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
    • Constructor Detail

      • Twister2SinkFunction

        public Twister2SinkFunction()
    • Method Detail

      • add

        public boolean add​(T value)
        Specified by:
        add in interface edu.iu.dsc.tws.api.tset.fn.SinkFunc<T>
      • close

        public void close()
        Specified by:
        close in interface edu.iu.dsc.tws.api.compute.modifiers.Closable
        Specified by:
        close in interface edu.iu.dsc.tws.api.tset.fn.TFunction<T,​T>
      • get

        public edu.iu.dsc.tws.api.dataset.DataPartition<?> get()
        Specified by:
        get in interface edu.iu.dsc.tws.api.tset.fn.SinkFunc<T>
      • 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<T,​T>