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() |
io.druid.query.groupby.orderby.DefaultLimitSpec |
getLimitSpec() |
RowSignature |
getOutputRowSignature() |
org.apache.calcite.rel.type.RelDataType |
getOutputRowType() |
Query |
getQuery() |
SortProject |
getSortProject() |
RowSignature |
getSourceRowSignature() |
io.druid.segment.VirtualColumns |
getVirtualColumns(io.druid.math.expr.ExprMacroTable macroTable,
boolean includeDimensions) |
io.druid.query.groupby.GroupByQuery |
toGroupByQuery()
Return this query as a GroupBy query, or null if this query is not compatible with GroupBy.
|
io.druid.query.scan.ScanQuery |
toScanQuery()
Return this query as a Scan query, or null if this query is not compatible with Scan.
|
io.druid.query.select.SelectQuery |
toSelectQuery()
Return this query as a Select query, or null if this query is not compatible with Select.
|
io.druid.query.timeseries.TimeseriesQuery |
toTimeseriesQuery()
Return this query as a Timeseries query, or null if this query is not compatible with Timeseries.
|
io.druid.query.topn.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 io.druid.segment.VirtualColumns getVirtualColumns(io.druid.math.expr.ExprMacroTable macroTable,
boolean includeDimensions)
public Grouping getGrouping()
public io.druid.query.groupby.orderby.DefaultLimitSpec getLimitSpec()
public SortProject getSortProject()
public org.apache.calcite.rel.type.RelDataType getOutputRowType()
public RowSignature getSourceRowSignature()
public RowSignature getOutputRowSignature()
public Query getQuery()
@Nullable public io.druid.query.timeseries.TimeseriesQuery toTimeseriesQuery()
@Nullable public io.druid.query.topn.TopNQuery toTopNQuery()
@Nullable public io.druid.query.groupby.GroupByQuery toGroupByQuery()
@Nullable public io.druid.query.scan.ScanQuery toScanQuery()
@Nullable public io.druid.query.select.SelectQuery toSelectQuery()
Copyright © 2011–2018. All rights reserved.