Q
- Type of AbstractDruidAggregationQuery this one extends. This allows the queries to nest their own type.public abstract class AbstractDruidFactQuery<Q extends AbstractDruidFactQuery<? super Q>> extends AbstractDruidQuery<Q> implements DruidFactQuery<Q>
Modifier and Type | Field and Description |
---|---|
protected Filter |
filter |
protected Granularity |
granularity |
protected Collection<org.joda.time.Interval> |
intervals |
context, dataSource, queryType
Modifier | Constructor and Description |
---|---|
protected |
AbstractDruidFactQuery(QueryType queryType,
DataSource dataSource,
Granularity granularity,
Filter filter,
Collection<org.joda.time.Interval> intervals,
QueryContext context,
boolean doFork)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Filter |
getFilter()
Returns the filter object of the query.
|
Granularity |
getGranularity()
Returns the time grain (granularity) of the query.
|
List<org.joda.time.Interval> |
getIntervals()
Returns the intervals of the query.
|
getContext, getDataSource, getQueryType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInnermostQuery, getInnerQuery, withAllIntervals, withFilter, withGranularity, withIntervals
getContext, getDataSource, getQueryType, withContext, withDataSource, withInnermostDataSource
protected final Granularity granularity
protected final Filter filter
protected final Collection<org.joda.time.Interval> intervals
protected AbstractDruidFactQuery(QueryType queryType, DataSource dataSource, Granularity granularity, Filter filter, Collection<org.joda.time.Interval> intervals, QueryContext context, boolean doFork)
queryType
- The type of this querydataSource
- The datasourcegranularity
- The granularityfilter
- The filterintervals
- The intervalscontext
- The contextdoFork
- true to fork a new context and bump up the query id, or false to create an exact copy of the
context.public Granularity getGranularity()
DruidFactQuery
getGranularity
in interface DruidFactQuery<Q extends AbstractDruidFactQuery<? super Q>>
public Filter getFilter()
DruidFactQuery
getFilter
in interface DruidFactQuery<Q extends AbstractDruidFactQuery<? super Q>>
public List<org.joda.time.Interval> getIntervals()
DruidFactQuery
getIntervals
in interface DruidFactQuery<Q extends AbstractDruidFactQuery<? super Q>>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.