Class RichMapPartitionFunction<I,​O>

    • Constructor Detail

      • RichMapPartitionFunction

        public RichMapPartitionFunction()
    • Method Detail

      • mapPartition

        public abstract void mapPartition​(Iterable<I> values,
                                          Collector<O> out)
                                   throws Exception
        Description copied from interface: MapPartitionFunction
        A user-implemented function that modifies or transforms an incoming object.
        Specified by:
        mapPartition in interface MapPartitionFunction<I,​O>
        Parameters:
        values - All records for the mapper
        out - The collector to hand results to.
        Throws:
        Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.