Modifier and Type | Method and Description |
---|---|
static Having |
DruidHavingBuilder.buildHaving(LogicalMetric metric,
ApiHaving having)
Create a list of NumericHavings for the values specified and OR them together.
|
static Having |
DruidHavingBuilder.buildHavings(Map<LogicalMetric,Set<ApiHaving>> metricMap)
Build a having model that ANDs together having queries for each of the metrics.
|
static Having |
DruidHavingBuilder.buildMetricHaving(LogicalMetric metric,
Set<ApiHaving> havings)
Build a Having for all the having queries for a single metric, ANDing them together.
|
Modifier and Type | Method and Description |
---|---|
protected GroupByQuery |
DruidQueryBuilder.buildGroupByQuery(TemplateDruidQuery template,
ConstrainedTable table,
Granularity granularity,
org.joda.time.DateTimeZone timeZone,
Set<Dimension> groupByDimensions,
Filter filter,
Having having,
Set<org.joda.time.Interval> intervals,
LimitSpec druidOrderBy)
Builds a druid groupBy query recursively nesting dataSource based on the TemplateDruidQuery.
|
Modifier and Type | Class and Description |
---|---|
class |
AndHaving
Having clause model for logical AND applied to a set of druid having expressions.
|
class |
MultiClauseHaving
Abstract parent of having models which take a set of other having filters.
|
class |
NotHaving
Having clause model for logical NOT applied to a having expressions.
|
class |
NumericHaving
Having clause model for numeric matching expressions.
|
class |
OrHaving
Having clause model for logical OR applied to a set of druid having expressions.
|
Modifier and Type | Method and Description |
---|---|
Having |
NotHaving.getHaving() |
Modifier and Type | Method and Description |
---|---|
List<Having> |
MultiClauseHaving.getHavings() |
Modifier and Type | Method and Description |
---|---|
abstract MultiClauseHaving |
MultiClauseHaving.withHavings(List<Having> havings)
Get a new instance of this having with the given Havings.
|
OrHaving |
OrHaving.withHavings(List<Having> havings) |
AndHaving |
AndHaving.withHavings(List<Having> havings) |
Constructor and Description |
---|
NotHaving(Having having)
Constructor.
|
Constructor and Description |
---|
AndHaving(List<Having> havings)
Constructor.
|
MultiClauseHaving(HavingType type,
List<Having> havings)
Constructor.
|
OrHaving(List<Having> havings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Having |
LookbackQuery.getHaving() |
Having |
GroupByQuery.getHaving() |
Modifier and Type | Method and Description |
---|---|
LookbackQuery |
LookbackQuery.withHaving(Having having) |
GroupByQuery |
GroupByQuery.withHaving(Having having) |
Constructor and Description |
---|
GroupByQuery(DataSource dataSource,
Granularity granularity,
Collection<Dimension> dimensions,
Filter filter,
Having having,
Collection<Aggregation> aggregations,
Collection<PostAggregation> postAggregations,
Collection<org.joda.time.Interval> intervals,
LimitSpec limitSpec)
Constructor.
|
GroupByQuery(DataSource dataSource,
Granularity granularity,
Collection<Dimension> dimensions,
Filter filter,
Having having,
Collection<Aggregation> aggregations,
Collection<PostAggregation> postAggregations,
Collection<org.joda.time.Interval> intervals,
LimitSpec limitSpec,
QueryContext context,
boolean doFork)
Constructor.
|
LookbackQuery(DataSource dataSource,
Collection<PostAggregation> postAggregations,
QueryContext context,
Collection<org.joda.time.Period> lookbackOffsets,
Collection<String> lookbackPrefixes,
Having having,
LimitSpec limitSpec)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SqlAggregationQuery |
SqlAggregationQuery.withHaving(Having having) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rex.RexNode |
HavingEvaluator.evaluate(Having having,
org.apache.calcite.tools.RelBuilder builder,
ApiToFieldMapper apiToFieldMapper)
Top level evaluate function meant to capture
Having which could not be mapped
to a specific "evaluate" method. |
org.apache.calcite.rex.RexNode |
HavingEvaluator.evaluateHaving(Having having,
org.apache.calcite.tools.RelBuilder builder,
ApiToFieldMapper apiToFieldMapper)
Creates an
RexNode which contains the given Having . |
Modifier and Type | Method and Description |
---|---|
Having |
DataApiRequest.getHaving()
The fact model having (should probably remove this).
|
Having |
DataApiRequestImpl.getHaving() |
Modifier and Type | Method and Description |
---|---|
DataApiRequestImpl |
DataApiRequest.withHaving(Having having) |
DataApiRequestImpl |
DataApiRequestImpl.withHaving(Having having) |
Constructor and Description |
---|
DataApiRequestImpl(ResponseFormatType format,
Optional<PaginationParameters> paginationParameters,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Response.ResponseBuilder builder,
LogicalTable table,
Granularity granularity,
Set<Dimension> dimensions,
LinkedHashMap<Dimension,LinkedHashSet<DimensionField>> perDimensionFields,
Set<LogicalMetric> logicalMetrics,
Set<org.joda.time.Interval> intervals,
ApiFilters apiFilters,
Map<LogicalMetric,Set<ApiHaving>> havings,
Having having,
LinkedHashSet<OrderByColumn> sorts,
int count,
int topN,
long asyncAfter,
org.joda.time.DateTimeZone timeZone,
DruidFilterBuilder filterBuilder,
HavingGenerator havingApiGenerator,
Optional<OrderByColumn> dateTimeSort)
All argument constructor, meant to be used for rewriting apiRequest.
|
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.