Class MapBundleFunction<K,​V,​IN,​OUT>

    • Constructor Detail

      • MapBundleFunction

        public MapBundleFunction()
    • Method Detail

      • addInput

        public abstract V addInput​(@Nullable
                                   V value,
                                   IN input)
                            throws Exception
        Adds the given input to the given value, returning the new bundle value.
        Parameters:
        value - the existing bundle value, maybe null
        input - the given input, not null
        Throws:
        Exception
      • finishBundle

        public abstract void finishBundle​(Map<K,​V> buffer,
                                          Collector<OUT> out)
                                   throws Exception
        Called when a bundle is finished. Transform a bundle to zero, one, or more output elements.
        Throws:
        Exception