Class/Object

io.epiphanous.flinkrunner.model.aggregate

Histogram

Related Docs: object Histogram | package aggregate

Permalink

final case class Histogram(dimension: String, unit: String, value: Double = 0d, count: BigInt = BigInt(0), aggregatedLastUpdated: Instant = Instant.EPOCH, lastUpdated: Instant = Instant.now(), dependentAggregations: Map[String, Aggregate] = Map.empty[String, Aggregate], params: Map[String, String] = Map.empty[String, String]) extends Aggregate with Product with Serializable

Linear Supertypes
Aggregate, LazyLogging, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Histogram
  2. Aggregate
  3. LazyLogging
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Histogram(dimension: String, unit: String, value: Double = 0d, count: BigInt = BigInt(0), aggregatedLastUpdated: Instant = Instant.EPOCH, lastUpdated: Instant = Instant.now(), dependentAggregations: Map[String, Aggregate] = Map.empty[String, Aggregate], params: Map[String, String] = Map.empty[String, String])

    Permalink

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. val aggregatedLastUpdated: Instant

    Permalink
    Definition Classes
    HistogramAggregate
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bin(key: String): Aggregate

    Permalink
  7. def binOf[A <: Quantity[A]](q: A, unitMapper: UnitMapper): Option[String]

    Permalink

    Compute a dynamic bin for the requested quantity.

    Compute a dynamic bin for the requested quantity. This picks a bin based on the order of magnitude of the quantity in the aggregate's preferred unit. If the order of magnitude is 3 (say the value is 2345) For instance if the quantity value is 0.00157, its order of magnitude is -3. We reduce that in absolute value by 1 (= -2) to compute the min and max of the bin as [floor(0.0157 * 10**2)/10**2 (= 0.01) and ceil(0.0157 * 10**2)/10**2 (= 0.02).

    q

    the quantity to compute a bin of

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val count: BigInt

    Permalink
    Definition Classes
    HistogramAggregate
  10. val dependentAggregations: Map[String, Aggregate]

    Permalink
    Definition Classes
    HistogramAggregate
  11. val dimension: String

    Permalink
    Definition Classes
    HistogramAggregate
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getDependents: Map[String, Aggregate]

    Permalink
    Definition Classes
    Aggregate
  16. def isDefined: Boolean

    Permalink
    Definition Classes
    Aggregate
  17. def isDimensionless: Boolean

    Permalink
    Definition Classes
    Aggregate
  18. def isEmpty: Boolean

    Permalink
    Definition Classes
    Aggregate
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def labeledValue: String

    Permalink
    Definition Classes
    Aggregate
  21. val lastUpdated: Instant

    Permalink
    Definition Classes
    HistogramAggregate
  22. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  23. def name: String

    Permalink
    Definition Classes
    Aggregate
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def nonEmpty: Boolean

    Permalink
    Definition Classes
    Aggregate
  26. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  28. def outUnit: String

    Permalink
    Definition Classes
    Aggregate
  29. val params: Map[String, String]

    Permalink
    Definition Classes
    HistogramAggregate
  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    HistogramAggregate → AnyRef → Any
  32. val unit: String

    Permalink
    Definition Classes
    HistogramAggregate
  33. def update[A <: Quantity[A]](q: A, aggLU: Instant, unitMapper: UnitMapper): Option[Aggregate]

    Permalink

    Update the aggregate with a Quantity.

    Update the aggregate with a Quantity.

    A

    dimension of Quantity

    q

    Quantity[A]

    aggLU

    event timestamp of quantity

    returns

    Aggregate

    Definition Classes
    HistogramAggregate
  34. def update(value: Double, unit: String, aggLU: Instant, unitMapper: UnitMapper = UnitMapper.defaultUnitMapper): Option[Aggregate]

    Permalink

    Most common entry point for updating aggregates.

    Most common entry point for updating aggregates.

    value

    Double value of quantity to update aggregate with

    unit

    String unit of quantity to update aggregate with

    aggLU

    event timestamp of value

    unitMapper

    allows caller to customize unit system mappings

    Definition Classes
    Aggregate
  35. def updateDependents[A <: Quantity[A]](q: A, aggLU: Instant, unitMapper: UnitMapper): Map[String, Aggregate]

    Permalink

    Update dependent aggregations.

    Update dependent aggregations.

    A

    the type of the quantity

    q

    the quantity being added to the aggregations

    aggLU

    the instant associated with the new quantity

    unitMapper

    a unit mapper

    Definition Classes
    Aggregate
  36. def updateQuantity[A <: Quantity[A]](current: A, quantity: A, depAggs: Map[String, Aggregate]): A

    Permalink

    Used by some subclasses to update the underlying aggregate value as a Quantity.

    Used by some subclasses to update the underlying aggregate value as a Quantity. When this is called, any dependent aggregations will be updated and passed into the depAggs parameter. You can find the previous dependent aggregations in this.dependentAggregations if you need them.

    A

    the dimension of the quantity

    current

    Quantity value of the aggregate

    quantity

    Quantity the new quantity to incorporate into the aggregate

    depAggs

    dependent aggregations already updated with the new quantity

    returns

    A

    Definition Classes
    Aggregate
  37. val value: Double

    Permalink
    Definition Classes
    HistogramAggregate
  38. final def wait(): Unit

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

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

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

Inherited from Aggregate

Inherited from LazyLogging

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped