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) |
Modifier and Type | Method and Description |
---|---|
Grouping |
getGrouping() |
DefaultLimitSpec |
getLimitSpec() |
RowSignature |
getOutputRowSignature() |
org.apache.calcite.rel.type.RelDataType |
getOutputRowType() |
Query |
getQuery() |
RowSignature |
getSourceRowSignature() |
VirtualColumns |
getVirtualColumns(ExprMacroTable macroTable,
boolean includeDimensions) |
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.
|
SelectQuery |
toSelectQuery()
Return this query as a Select query, or null if this query is not compatible with Select.
|
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)
public VirtualColumns getVirtualColumns(ExprMacroTable macroTable, boolean includeDimensions)
public Grouping getGrouping()
public DefaultLimitSpec getLimitSpec()
public org.apache.calcite.rel.type.RelDataType getOutputRowType()
public RowSignature getSourceRowSignature()
public RowSignature getOutputRowSignature()
public Query getQuery()
@Nullable public TimeseriesQuery toTimeseriesQuery()
@Nullable public TopNQuery toTopNQuery()
@Nullable public GroupByQuery toGroupByQuery()
@Nullable public ScanQuery toScanQuery()
@Nullable public SelectQuery toSelectQuery()
Copyright © 2011–2018. All rights reserved.