org.sparklinedata.druid

DruidQueryBuilder

case class DruidQueryBuilder(drInfo: DruidRelationInfo, queryIntervals: QueryIntervals, dimensions: List[DimensionSpec] = immutable.this.Nil, limitSpec: Option[LimitSpec] = scala.None, havingSpec: Option[HavingSpec] = scala.None, granularitySpec: Either[String, GranularitySpec] = ..., filterSpec: Option[FilterSpec] = scala.None, aggregations: List[AggregationSpec] = immutable.this.Nil, postAggregations: Option[List[PostAggregationSpec]] = scala.None, projectionAliasMap: Map[String, String] = ..., outputAttributeMap: Map[String, (Expression, DataType, DataType, String)] = ..., avgExpressions: Map[Expression, (String, String)] = ..., aggExprToLiteralExpr: Map[Expression, Expression] = ..., aggregateOper: Option[Aggregate] = scala.None, curId: AtomicLong = ...) extends Product with Serializable

drInfo
queryIntervals
dimensions
limitSpec
havingSpec
granularitySpec
filterSpec
aggregations
postAggregations
projectionAliasMap

map from projected alias name to underlying column name.

outputAttributeMap

list of output Attributes with the ExprId of the Attribute they represent, the DataType in the original Plan and the DataType from Druid.

aggExprToLiteralExpr

for expressions that represent a 'null' value for a this GroupingSet or represent the 'groupingid' columns, this is a map to the Literal value that is filled in the Projection above the DruidRDD.

aggregateOper
curId

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DruidQueryBuilder
  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 DruidQueryBuilder(drInfo: DruidRelationInfo, queryIntervals: QueryIntervals, dimensions: List[DimensionSpec] = immutable.this.Nil, limitSpec: Option[LimitSpec] = scala.None, havingSpec: Option[HavingSpec] = scala.None, granularitySpec: Either[String, GranularitySpec] = ..., filterSpec: Option[FilterSpec] = scala.None, aggregations: List[AggregationSpec] = immutable.this.Nil, postAggregations: Option[List[PostAggregationSpec]] = scala.None, projectionAliasMap: Map[String, String] = ..., outputAttributeMap: Map[String, (Expression, DataType, DataType, String)] = ..., avgExpressions: Map[Expression, (String, String)] = ..., aggExprToLiteralExpr: Map[Expression, Expression] = ..., aggregateOper: Option[Aggregate] = scala.None, curId: AtomicLong = ...)

    drInfo
    queryIntervals
    dimensions
    limitSpec
    havingSpec
    granularitySpec
    filterSpec
    aggregations
    postAggregations
    projectionAliasMap

    map from projected alias name to underlying column name.

    outputAttributeMap

    list of output Attributes with the ExprId of the Attribute they represent, the DataType in the original Plan and the DataType from Druid.

    aggExprToLiteralExpr

    for expressions that represent a 'null' value for a this GroupingSet or represent the 'groupingid' columns, this is a map to the Literal value that is filled in the Projection above the DruidRDD.

    aggregateOper
    curId

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. def addAlias(alias: String, col: String): DruidQueryBuilder

  7. val aggExprToLiteralExpr: Map[Expression, Expression]

    for expressions that represent a 'null' value for a this GroupingSet or represent the 'groupingid' columns, this is a map to the Literal value that is filled in the Projection above the DruidRDD.

  8. def aggregate(a: AggregationSpec): DruidQueryBuilder

  9. def aggregateOp(op: Aggregate): DruidQueryBuilder

  10. val aggregateOper: Option[Aggregate]

  11. val aggregations: List[AggregationSpec]

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def avgExpression(e: Expression, sumAlias: String, cntAlias: String): DruidQueryBuilder

  14. val avgExpressions: Map[Expression, (String, String)]

  15. def canPushToHistorical: Boolean

    currently we don't transform queries with LimitSpec or HavingSpec into post DruidOperations in Spark.

    currently we don't transform queries with LimitSpec or HavingSpec into post DruidOperations in Spark.

    returns

  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. val curId: AtomicLong

  18. def dimension(d: DimensionSpec): DruidQueryBuilder

  19. val dimensions: List[DimensionSpec]

  20. val drInfo: DruidRelationInfo

  21. def druidColumn(name: String): Option[DruidColumn]

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

    Definition Classes
    AnyRef
  23. def filter(f: FilterSpec): DruidQueryBuilder

  24. val filterSpec: Option[FilterSpec]

  25. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  27. def granularity(g: GranularitySpec): DruidQueryBuilder

  28. val granularitySpec: Either[String, GranularitySpec]

  29. def having(h: HavingSpec): DruidQueryBuilder

  30. val havingSpec: Option[HavingSpec]

  31. def interval(iC: IntervalCondition): Option[DruidQueryBuilder]

  32. def isDruidNonTimeDimension(name: String): Boolean

  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def limit(amt: Int): Option[DruidQueryBuilder]

  35. def limit(l: LimitSpec): DruidQueryBuilder

  36. val limitSpec: Option[LimitSpec]

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

    Definition Classes
    AnyRef
  38. def nextAlias(cn: String): String

  39. def nextAlias: String

  40. final def notify(): Unit

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

    Definition Classes
    AnyRef
  42. def orderBy(dimName: String, ascending: Boolean): DruidQueryBuilder

  43. def outputAttribute(nm: String, e: Expression, originalDT: DataType, druidDT: DataType, tfName: String = null): DruidQueryBuilder

  44. val outputAttributeMap: Map[String, (Expression, DataType, DataType, String)]

    list of output Attributes with the ExprId of the Attribute they represent, the DataType in the original Plan and the DataType from Druid.

  45. def postAggregate(p: PostAggregationSpec): DruidQueryBuilder

  46. val postAggregations: Option[List[PostAggregationSpec]]

  47. val projectionAliasMap: Map[String, String]

    map from projected alias name to underlying column name.

  48. val queryIntervals: QueryIntervals

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. 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