Q
- Type of AbstractDruidQuery this one extends. This allows the queries to nest their own type.public abstract class AbstractDruidQuery<Q extends AbstractDruidQuery<? super Q>> extends Object implements DruidQuery<Q>
Modifier and Type | Field and Description |
---|---|
protected QueryContext |
context |
protected DataSource |
dataSource |
protected QueryType |
queryType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDruidQuery(QueryType queryType,
DataSource dataSource,
QueryContext context,
boolean doFork)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
QueryContext |
getContext()
Returns the context of the query.
|
DataSource |
getDataSource()
Returns the data source of the query.
|
QueryType |
getQueryType()
Returns the type of the query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInnermostQuery, getInnerQuery, withContext, withDataSource, withInnermostDataSource
protected final QueryType queryType
protected final DataSource dataSource
protected final QueryContext context
protected AbstractDruidQuery(QueryType queryType, DataSource dataSource, QueryContext context, boolean doFork)
queryType
- The type of this querydataSource
- 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 QueryType getQueryType()
DruidQuery
getQueryType
in interface DruidQuery<Q extends AbstractDruidQuery<? super Q>>
public DataSource getDataSource()
DruidQuery
getDataSource
in interface DruidQuery<Q extends AbstractDruidQuery<? super Q>>
public QueryContext getContext()
DruidQuery
getContext
in interface DruidQuery<Q extends AbstractDruidQuery<? super Q>>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.