Class SummaryBuilder


public abstract class SummaryBuilder extends Object
A builder object that provides summary statistics about a given column.

Users should not directly create such builders, but instead use one of the methods in Summarizer.

  • Constructor Details

    • SummaryBuilder

      public SummaryBuilder()
  • Method Details

    • summary

      public abstract Column summary(Column featuresCol, Column weightCol)
      Returns an aggregate object that contains the summary of the column with the requested metrics.
      featuresCol - a column that contains features Vector object.
      weightCol - a column that contains weight value. Default weight is 1.0.
      an aggregate column that contains the statistics. The exact content of this structure is determined during the creation of the builder.
    • summary

      public Column summary(Column featuresCol)