Q
- class that extends DruidQuerypublic interface DruidFactQuery<Q extends DruidFactQuery<? super Q>> extends DruidQuery<Q>
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.
|
default DruidFactQuery<?> |
getInnermostQuery()
If this structure is part of a query stack, return the lowest element.
|
default Optional<? extends DruidFactQuery> |
getInnerQuery()
If this query is nestable, and has a nested query return it.
|
List<org.joda.time.Interval> |
getIntervals()
Returns the intervals of the query.
|
Q |
withAllIntervals(Collection<org.joda.time.Interval> intervals)
Returns a copy of this query with the specified intervals set in this and all inner queries.
|
Q |
withFilter(Filter filter)
Returns a copy of this query with the specified filter.
|
Q |
withGranularity(Granularity granularity)
Returns a copy of this query with the specified time grain.
|
Q |
withIntervals(Collection<org.joda.time.Interval> intervals)
Returns a copy of this query with the specified intervals.
|
getContext, getDataSource, getQueryType, withContext, withDataSource, withInnermostDataSource
Granularity getGranularity()
Filter getFilter()
List<org.joda.time.Interval> getIntervals()
Q withGranularity(Granularity granularity)
granularity
- the new time grainQ withFilter(Filter filter)
filter
- the new filterQ withIntervals(Collection<org.joda.time.Interval> intervals)
intervals
- the new intervalsQ withAllIntervals(Collection<org.joda.time.Interval> intervals)
All nested queries are copies of themselves with the specified intervals set.
intervals
- the new intervalsdefault Optional<? extends DruidFactQuery> getInnerQuery()
DruidQuery
getInnerQuery
in interface DruidQuery<Q extends DruidFactQuery<? super Q>>
default DruidFactQuery<?> getInnermostQuery()
DruidQuery
getInnermostQuery
in interface DruidQuery<Q extends DruidFactQuery<? super Q>>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.