Interface Reducer<I,O>

Type Parameters:
I - the physical Java type of the input
O - the physical Java type of the output

@Evolving public interface Reducer<I,O>
A 'reducer' for output of user-defined functions.
Since:
4.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns a short string representation for plan display (e.g.
    reduce(I arg)
     
    Returns the data type of values produced by this reducer.
  • Method Details

    • reduce

      O reduce(I arg)
    • displayName

      default String displayName()
      Returns a short string representation for plan display (e.g. explain output). Defaults to the unqualified class name; implementations may override for a richer description.
    • resultType

      DataType resultType()
      Returns the data type of values produced by this reducer.
      Returns:
      the data type of values produced by this reducer.