public class TimeBoundaryQuery extends AbstractDruidQuery<TimeBoundaryQuery> implements DruidMetadataQuery<TimeBoundaryQuery>
context, dataSource, queryType
Modifier | Constructor and Description |
---|---|
|
TimeBoundaryQuery(DataSource dataSource)
Constructor.
|
protected |
TimeBoundaryQuery(DataSource dataSource,
QueryContext context,
boolean doFork)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TimeBoundaryQuery |
withContext(QueryContext context)
Returns a copy of this query with the specified context.
|
TimeBoundaryQuery |
withDataSource(DataSource dataSource)
Returns a copy of this query with the specified data source.
|
TimeBoundaryQuery |
withInnermostDataSource(DataSource dataSource)
Returns a copy of this query with the specified data source on the innermost query.
|
getContext, getDataSource, getQueryType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDataSource, getInnermostQuery, getInnerQuery, getQueryType
protected TimeBoundaryQuery(DataSource dataSource, QueryContext context, boolean doFork)
dataSource
- The datasourcecontext
- 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 TimeBoundaryQuery(DataSource dataSource)
dataSource
- The datasourcepublic TimeBoundaryQuery withDataSource(DataSource dataSource)
DruidQuery
withDataSource
in interface DruidQuery<TimeBoundaryQuery>
dataSource
- the new data sourcepublic TimeBoundaryQuery withInnermostDataSource(DataSource dataSource)
DruidQuery
withInnermostDataSource
in interface DruidQuery<TimeBoundaryQuery>
dataSource
- the new data sourcepublic TimeBoundaryQuery withContext(QueryContext context)
DruidQuery
withContext
in interface DruidQuery<TimeBoundaryQuery>
context
- the new contextCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.