Class StringFacetAggregator

    • Constructor Detail

      • StringFacetAggregator

        public StringFacetAggregator​(int columnIdx,
                                     String selected)
    • Method Detail

      • sum

        public StringFacetState sum​(StringFacetState first,
                                    StringFacetState second)
        Description copied from interface: Combiner
        Merges two facet statistics from the same facet, computed on different sets of rows. This generally amounts to summing all the statistics internally. This function is required to be associative: sum(a, sum(b, c)) == sum(sum(a, b), c)
        the sum of both facet statistics
      • withRow

        public StringFacetState withRow​(StringFacetState state,
                                        long rowId,
                                        Row row,
                                        Record record)
        Description copied from class: RowInRecordAggregator
        Adds statistics obtained from a single row to the facet state. Given that facet states are expected to be immutable, this returns a new facet state object.
        Specified by:
        withRow in class RowInRecordAggregator<StringFacetState>
        rowId - the row id of the row to ingest
        row - the row to ingest
        record - the enclosing record of the row, if available (in records mode), null otherwise
        the facet state updated with this row