Q
- class that extends DruidQuerypublic interface DruidQuery<Q extends DruidQuery<? super Q>>
Modifier and Type | Method and Description |
---|---|
QueryContext |
getContext()
Returns the context of the query.
|
DataSource |
getDataSource()
Returns the data source of the query.
|
default DruidQuery<?> |
getInnermostQuery()
If this structure is part of a query stack, return the lowest element.
|
default Optional<? extends DruidQuery> |
getInnerQuery()
If this query is nestable, and has a nested query return it.
|
QueryType |
getQueryType()
Returns the type of the query.
|
Q |
withContext(QueryContext context)
Returns a copy of this query with the specified context.
|
Q |
withDataSource(DataSource dataSource)
Returns a copy of this query with the specified data source.
|
Q |
withInnermostDataSource(DataSource dataSource)
Returns a copy of this query with the specified data source on the innermost query.
|
QueryType getQueryType()
DataSource getDataSource()
Q withInnermostDataSource(DataSource dataSource)
dataSource
- the new data sourceQueryContext getContext()
default Optional<? extends DruidQuery> getInnerQuery()
default DruidQuery<?> getInnermostQuery()
Q withDataSource(DataSource dataSource)
dataSource
- the new data sourceQ withContext(QueryContext context)
context
- the new contextCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.