final class GroupByQueryBuilder extends QueryBuilderCommons with AggregationQueryBuilderCommons
Builder for group-by queries
- Alphabetic
- By Inheritance
- GroupByQueryBuilder
- AggregationQueryBuilderCommons
- QueryBuilderCommons
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def agg(aggs: AggregationExpression*): GroupByQueryBuilder.this.type
Specify one or more aggregations to use
Specify one or more aggregations to use
- Definition Classes
- AggregationQueryBuilderCommons
- val aggregations: List[Aggregation]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build()(implicit druidConfig: DruidConfig = DruidConfig.DefaultConfig): GroupByQuery
Gives the resulting group-by query, wrt.
Gives the resulting group-by query, wrt. the given query parameters (e.g., where, datasource, etc.)
- returns
the resulting group-by query
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val complexAggregationNames: Set[String]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- def copyTo[T <: QueryBuilderCommons](other: T): T
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- val dataSourceOpt: Option[String]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- var excludeNullsOpt: Option[Boolean]
- Attributes
- protected
- val filters: List[Filter]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- def from(dataSource: String): GroupByQueryBuilder.this.type
Specify the datasource to use, other than the default one in the configuration
Specify the datasource to use, other than the default one in the configuration
- Definition Classes
- QueryBuilderCommons
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getFilters: Option[Filter]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- def getPostAggs: List[PostAggregation]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- def granularity(granularity: Granularity): GroupByQueryBuilder.this.type
Define the granularity to bucket query results
Define the granularity to bucket query results
- Definition Classes
- QueryBuilderCommons
- val granularityOpt: Option[Granularity]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def having(conditions: FilteringExpression): GroupByQueryBuilder.this.type
Specify which rows from a group-by query should be returned, by specifying conditions on aggregated values
- var havingExpressions: List[Having]
- Attributes
- protected
- def interval(interval: String): GroupByQueryBuilder.this.type
Specify the time range to run the query over (should be expressed as ISO-8601 interval)
Specify the time range to run the query over (should be expressed as ISO-8601 interval)
- Definition Classes
- QueryBuilderCommons
- def intervals(ints: String*): GroupByQueryBuilder.this.type
Specify multiple time ranges to run the query over (should be expressed as ISO-8601 intervals)
Specify multiple time ranges to run the query over (should be expressed as ISO-8601 intervals)
- Definition Classes
- QueryBuilderCommons
- val intervals: List[String]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def limit(n: Int, cols: OrderByColumnSpec*): GroupByQueryBuilder.this.type
Sort and limit the set of results of the group-by query
Sort and limit the set of results of the group-by query
- n
the upper limit of the number of results
- cols
specify the ordering per group-by dimension
- def limit(n: Int, direction: Direction, dimensionOrderType: DimensionOrderType = DimensionOrderType.Lexicographic): GroupByQueryBuilder.this.type
Sort and limit the set of results of the group-by query
Sort and limit the set of results of the group-by query
- n
the upper limit of the number of results
- direction
specify the order of the results (i.e., ascending or descending) for all group-by dimensions
- dimensionOrderType
specify the type of the ordering (lexicographic, alphanumeric, etc.) for all group-by dimensions. Default is lexicographic.
- var limitCols: Iterable[OrderByColumnSpec]
- Attributes
- protected
- var limitOpt: Option[Int]
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def postAgg(postAggs: PostAggregationExpression*): GroupByQueryBuilder.this.type
Specify one or more post-aggregations to use
Specify one or more post-aggregations to use
- Definition Classes
- AggregationQueryBuilderCommons
- val postAggregationExpr: List[PostAggregationExpression]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- val queryContextParams: Map[QueryContextParam, QueryContextValue]
- Attributes
- protected
- Definition Classes
- QueryBuilderCommons
- def setExcludeNulls(v: Boolean): GroupByQueryBuilder.this.type
Specify whether or not to exclude null for all group-by dimensions
- def setQueryContextParam(key: QueryContextParam, value: QueryContextValue): GroupByQueryBuilder.this.type
- Definition Classes
- QueryBuilderCommons
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def where(filter: FilteringExpression): GroupByQueryBuilder.this.type
Specify one or more filter operations to use in the query
Specify one or more filter operations to use in the query
- Definition Classes
- QueryBuilderCommons
- def withQueryContext(params: Map[QueryContextParam, QueryContextValue]): GroupByQueryBuilder.this.type
- Definition Classes
- QueryBuilderCommons
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.