Interface Output<T>

  • Type Parameters:
    T - the type of the result computed by the job

    public interface Output<T>
    Interface for Map/Reduce output entities. An output entity is produced by the map phase of the job and will be subject to the reduce phase of the job where it will be combined (reduced) with other output entities. Eventually, the final output entity remaining will provide the overall result of the job.
    Author:
    patrick.peschlow
    • Method Detail

      • reduce

        Output<T> reduce​(Output<T> other)
        Reduces this output entity with another output entity.
        Parameters:
        other - the entity to reduce with this entity
        Returns:
        an entity representing the combined result of the two reduced entities
      • getResult

        T getResult()
        Provides the actual result associated with this output entity.
        Returns:
        the actual result of the computation