Interface MapReduce.ReduceEmitter<OK,​OV>

  • Type Parameters:
    OK - the key type
    OV - the value type
    All Known Implementing Classes:
    TinkerReduceEmitter
    Enclosing interface:
    MapReduce<MK,​MV,​RK,​RV,​R>

    public static interface MapReduce.ReduceEmitter<OK,​OV>
    The ReduceEmitter is used to emit key/value pairs from the combine() and reduce() stages of the MapReduce job. The implementation of ReduceEmitter is up to the vendor, not the developer.
    • Method Detail

      • emit

        void emit​(OK key,
                  OV value)
      • emit

        default void emit​(OV value)
        A default method that assumes the key is MapReduce.NullObject.
        Parameters:
        value - the value to emit.