public class DruidQuery extends Object
PartialDruidQuery. The work to develop this query is done
during construction, which may throw CannotBuildQueryException.| Constructor and Description |
|---|
DruidQuery(PartialDruidQuery partialQuery,
DataSource dataSource,
RowSignature sourceRowSignature,
PlannerContext plannerContext,
org.apache.calcite.rex.RexBuilder rexBuilder,
boolean finalizeAggregations) |
| Modifier and Type | Method and Description |
|---|---|
Grouping |
getGrouping() |
RowSignature |
getOutputRowSignature() |
org.apache.calcite.rel.type.RelDataType |
getOutputRowType() |
Query |
getQuery() |
GroupByQuery |
toGroupByQuery()
Return this query as a GroupBy query, or null if this query is not compatible with GroupBy.
|
ScanQuery |
toScanQuery()
Return this query as a Scan query, or null if this query is not compatible with Scan.
|
TimeseriesQuery |
toTimeseriesQuery()
Return this query as a Timeseries query, or null if this query is not compatible with Timeseries.
|
TopNQuery |
toTopNQuery()
Return this query as a TopN query, or null if this query is not compatible with TopN.
|
public DruidQuery(PartialDruidQuery partialQuery, DataSource dataSource, RowSignature sourceRowSignature, PlannerContext plannerContext, org.apache.calcite.rex.RexBuilder rexBuilder, boolean finalizeAggregations)
public org.apache.calcite.rel.type.RelDataType getOutputRowType()
public RowSignature getOutputRowSignature()
public Query getQuery()
@Nullable public TimeseriesQuery toTimeseriesQuery()
@Nullable public TopNQuery toTopNQuery()
@Nullable public GroupByQuery toGroupByQuery()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.