Interface RowAggregator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T withRow​(T state, long rowId, Row row)
      Adds statistics obtained from a single row to the aggregation state.
      • Methods inherited from interface org.openrefine.browsing.facets.Combiner

        sum
    • Method Detail

      • withRow

        T withRow​(T state,
                  long rowId,
                  Row row)
        Adds statistics obtained from a single row to the aggregation state. Given that states are expected to be immutable, this returns a aggregation state object. This function is required to be associative with the combining function: combine(a, withRow(b, rowId, row)) == withRow(combine(a, b), rowId, row)
        Parameters:
        rowId - the row id of the row to ingest
        row - the row to ingest
        Returns:
        the aggregation state updated with this row