org.sparklinedata.druid.metadata

DruidRelationColumn

case class DruidRelationColumn(column: String, druidColumn: Option[DruidColumn], spatialIndex: Option[SpatialDruidDimension] = scala.None, hllMetric: Option[DruidMetric] = scala.None, sketchMetric: Option[DruidMetric] = scala.None, cardinalityEstimate: Option[Long] = scala.None) extends Product with Serializable

Captures the link(s) of a source column to the Druid Index.

A column ca have several kinds of links to the Druid Index: - it can be a Druid Dimension, possibly the Time Dimension of the Druid Index. - it can be a component(axis) of a Spatial Index in Druid - its value can be stored as a HLL Aggregation in Druid. - its value can be stored in a Sketch Aggregation in Druid.

A column can have multiple links, for example: - a latitude column can be both a Druid Dimension and be an axis in a Spatial Index. - a column can be both a Dimension and have an HLL and/or Sketch.

column

the source column

druidColumn

the direct link of this source coulmn to a Druid Dimension or Metric.

spatialIndex

the spatial index for this column.

hllMetric

the hll Metric for this column

sketchMetric

the sketch for this column

cardinalityEstimate

user provided cardinality estimate.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DruidRelationColumn
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DruidRelationColumn(column: String, druidColumn: Option[DruidColumn], spatialIndex: Option[SpatialDruidDimension] = scala.None, hllMetric: Option[DruidMetric] = scala.None, sketchMetric: Option[DruidMetric] = scala.None, cardinalityEstimate: Option[Long] = scala.None)

    column

    the source column

    druidColumn

    the direct link of this source coulmn to a Druid Dimension or Metric.

    spatialIndex

    the spatial index for this column.

    hllMetric

    the hll Metric for this column

    sketchMetric

    the sketch for this column

    cardinalityEstimate

    user provided cardinality estimate.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val cardinality: Long

  8. val cardinalityEstimate: Option[Long]

    user provided cardinality estimate.

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val column: String

    the source column

  11. def dataType: DruidDataType.Value

  12. val druidColumn: Option[DruidColumn]

    the direct link of this source coulmn to a Druid Dimension or Metric.

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  16. def hasDirectDruidColumn: Boolean

  17. def hasHLLMetric: Boolean

  18. def hasSketchMetric: Boolean

  19. def hasSpatialIndex: Boolean

  20. val hllMetric: Option[DruidMetric]

    the hll Metric for this column

  21. def isDimension(excludeTime: Boolean = false): Boolean

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isMetric: Boolean

  24. def isTimeDimension: Boolean

  25. def metric: DruidMetric

  26. def name: String

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def size: Long

  31. val sketchMetric: Option[DruidMetric]

    the sketch for this column

  32. val spatialIndex: Option[SpatialDruidDimension]

    the spatial index for this column.

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

    Definition Classes
    AnyRef
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped