Interface MergedStatistic

All Known Implementing Classes:
AbstractMergedStatistic, AvgWidthMergedStatistic, CntDupsMergedStatistic, ColTypeMergedStatistic, ColumnMergedStatistic, HLLMergedStatistic, NDVMergedStatistic, NNRowCountMergedStatistic, RowCountMergedStatistic, TDigestMergedStatistic

public interface MergedStatistic
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name of the input statistic
    Gets the name of the merged statistic
    void
    initialize(String inputName, double samplePercent)
    Initialize the merged statistic
    void
    Merges the input statistic (incoming value vector) into the existing merged statistic
    void
    Sets the merged statistic value in the output (outgoing value vector)
  • Method Details

    • initialize

      void initialize(String inputName, double samplePercent)
      Initialize the merged statistic
      Parameters:
      inputName - - the input StatisticsAggBatch statistic for this merged statistic
      samplePercent - - the sample percentage used for extrapolation post merge phase
    • getName

      String getName()
      Gets the name of the merged statistic
      Returns:
      - name of this merged statistic
    • getInput

      String getInput()
      Gets the name of the input statistic
      Returns:
      - name of the input StatisticsAggBatch statistic for this merged statistic
    • merge

      void merge(MapVector input)
      Merges the input statistic (incoming value vector) into the existing merged statistic
      Parameters:
      input - - the input value vector to merge
    • setOutput

      void setOutput(MapVector output)
      Sets the merged statistic value in the output (outgoing value vector)
      Parameters:
      output - - the output vector where to populate the statistic value