public class QueryPlanningConstraint extends DataSourceConstraint
Constructor and Description |
---|
QueryPlanningConstraint(DataApiRequest dataApiRequest,
TemplateDruidQuery templateDruidQuery)
Constructor.
|
QueryPlanningConstraint(Set<Dimension> requestDimensions,
Set<Dimension> filterDimensions,
Set<Dimension> metricDimensions,
Set<String> metricNames,
ApiFilters apiFilters,
LogicalTable logicalTable,
Set<org.joda.time.Interval> intervals,
Set<LogicalMetric> logicalMetrics,
Granularity minimumGranularity,
Granularity requestGranularity)
Constructor.
|
QueryPlanningConstraint(TablesApiRequest tablesApiRequest)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<org.joda.time.Interval> |
getIntervals() |
Set<String> |
getLogicalMetricNames() |
Set<LogicalMetric> |
getLogicalMetrics() |
LogicalTable |
getLogicalTable() |
Granularity |
getMinimumGranularity() |
Granularity |
getRequestGranularity() |
int |
hashCode() |
getAllColumnNames, getAllDimensionNames, getAllDimensions, getApiFilters, getFilterDimensions, getMetricDimensions, getMetricNames, getRequestDimensions, unconstrained, withMetricIntersection
public QueryPlanningConstraint(Set<Dimension> requestDimensions, Set<Dimension> filterDimensions, Set<Dimension> metricDimensions, Set<String> metricNames, ApiFilters apiFilters, LogicalTable logicalTable, Set<org.joda.time.Interval> intervals, Set<LogicalMetric> logicalMetrics, Granularity minimumGranularity, Granularity requestGranularity)
requestDimensions
- Dimensions contained in requestfilterDimensions
- Filtered dimensionsmetricDimensions
- Metric related dimensionsmetricNames
- Names of metricsapiFilters
- Map of dimension to its set of API filterslogicalTable
- The logical table requested by the requestintervals
- The interval constraint of the requestlogicalMetrics
- The logical metrics requested by the requestminimumGranularity
- The finest granularity that must be satisfied by table granularityrequestGranularity
- The requested granularity of on the requested tablepublic QueryPlanningConstraint(@NotNull DataApiRequest dataApiRequest, @NotNull TemplateDruidQuery templateDruidQuery)
dataApiRequest
- Data API request containing the constraints informationtemplateDruidQuery
- Query containing metric constraint informationpublic QueryPlanningConstraint(@NotNull TablesApiRequest tablesApiRequest)
tablesApiRequest
- Tables API request containing the constraints information.public LogicalTable getLogicalTable()
public Set<org.joda.time.Interval> getIntervals()
public Set<LogicalMetric> getLogicalMetrics()
public Granularity getMinimumGranularity()
public Granularity getRequestGranularity()
public boolean equals(Object obj)
equals
in class DataSourceConstraint
public int hashCode()
hashCode
in class DataSourceConstraint
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.