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