Object

ai.chronon.aggregator.row

StatsGenerator

Related Doc: package row

Permalink

object StatsGenerator

Module managing FeatureStats Schema, Aggregations to be used by type and aggregator construction.

Stats Aggregation has an offline/ batch component and an online component. The metrics defined for stats depend on the schema of the join. The dataTypes and column names. For the online side, we obtain this information from the JoinCodec/valueSchema For the offline side, we obtain this information directly from the outputTable. To keep the schemas consistent we sort the metrics in the schema by name. (one column can have multiple metrics).

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StatsGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class MetricTransform(name: String, expression: InputTransform, operation: Operation, suffix: String = "", argMap: Map[String, String] = null) extends Product with Serializable

    Permalink

    MetricTransform represents a single statistic built on top of an input column.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object InputTransform extends Enumeration

    Permalink

    InputTransform acts as a signal of how to process the metric.

    InputTransform acts as a signal of how to process the metric.

    IsNull: Check if the input is null.

    Raw: Operate in the input column.

    One: lit(true) in spark. Used for row counts leveraged to obtain null rate values.

  5. def SeriesFinalizer(key: String, value: AnyRef): AnyRef

    Permalink

    Post processing for finalized values or IRs when generating a time series of stats.

    Post processing for finalized values or IRs when generating a time series of stats. In the case of percentiles for examples we reduce to 5 values in order to generate candlesticks.

  6. def anyTransforms(column: String): Seq[MetricTransform]

    Permalink

    Stats applied to any column

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def buildAggPart(m: MetricTransform): AggregationPart

    Permalink
  9. def buildAggregator(metrics: Seq[MetricTransform], selectedSchema: StructType): RowAggregator

    Permalink

    Build RowAggregator to use for computing stats on a dataframe based on metrics

  10. def buildMetrics(fields: Seq[(String, DataType)]): Seq[MetricTransform]

    Permalink

    For the schema of the data define metrics to be aggregated

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val finalizedPercentilesMerged: Array[Double]

    Permalink
  16. val finalizedPercentilesSeries: Array[Double]

    Permalink
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. val ignoreColumns: Seq[String]

    Permalink
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def lInfKllSketch(sketch1: AnyRef, sketch2: AnyRef, bins: Int = 128): AnyRef

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val nullRateSuffix: String

    Permalink
  26. val nullSuffix: String

    Permalink
  27. def numericTransforms(column: String): Seq[MetricTransform]

    Permalink

    Stats applied to numeric columns

  28. def statsInputSchema(valueSchema: StructType): StructType

    Permalink

    Input schema is the data required to update partial aggregations / stats.

    Input schema is the data required to update partial aggregations / stats.

    Given a valueSchema and a metric transform list, defines the schema expected by the Stats aggregator (online and offline)

  29. def statsIrSchema(valueSchema: StructType): StructType

    Permalink

    A valueSchema (for join) and Metric list define uniquely the IRSchema to be used for the statistics.

    A valueSchema (for join) and Metric list define uniquely the IRSchema to be used for the statistics. In order to support custom storage for statistic percentiles this method would need to be modified. IR Schemas are used to decode streaming partial aggregations as well as KvStore partial stats.

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. val totalColumn: String

    Permalink
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped