public class DataSourceMetadataQuery extends BaseQuery<Result<DataSourceMetadataResultValue>>
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDDATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN| Constructor and Description |
|---|
DataSourceMetadataQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
Map<String,Object> context) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Result<DataSourceMetadataResultValue>> |
buildResult(org.joda.time.DateTime timestamp,
org.joda.time.DateTime maxIngestedEventTime) |
DimFilter |
getFilter() |
String |
getType() |
boolean |
hasFilters() |
Iterable<Result<DataSourceMetadataResultValue>> |
mergeResults(List<Result<DataSourceMetadataResultValue>> results) |
String |
toString() |
Query<Result<DataSourceMetadataResultValue>> |
withDataSource(DataSource dataSource) |
DataSourceMetadataQuery |
withOverriddenContext(Map<String,Object> contextOverrides) |
DataSourceMetadataQuery |
withQuerySegmentSpec(QuerySegmentSpec spec)
Returns a new query, identical to this one, but with a different associated
QuerySegmentSpec. |
checkInterrupted, computeOverriddenContext, computeOverridenContext, equals, getContext, getContextBoolean, getContextValue, getContextValue, getDataSource, getDuration, getGranularity, getId, getIntervals, getQuerySegmentSpec, getQuerySegmentSpecForLookUp, getResultOrdering, getRunner, getSqlQueryId, getSubQueryId, getTimezone, hashCode, isDescending, withId, withSqlQueryId, withSubQueryIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMostSpecificId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPrioritypublic DataSourceMetadataQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, Map<String,Object> context)
public boolean hasFilters()
public DimFilter getFilter()
public String getType()
public DataSourceMetadataQuery withOverriddenContext(Map<String,Object> contextOverrides)
public DataSourceMetadataQuery withQuerySegmentSpec(QuerySegmentSpec spec)
QueryQuerySegmentSpec.
This often changes the behavior of Query.getRunner(QuerySegmentWalker), since most queries inherit that method
from BaseQuery, which implements it by calling QuerySegmentSpec.lookup(org.apache.druid.query.Query<T>, org.apache.druid.query.QuerySegmentWalker).public Query<Result<DataSourceMetadataResultValue>> withDataSource(DataSource dataSource)
public Iterable<Result<DataSourceMetadataResultValue>> buildResult(org.joda.time.DateTime timestamp, org.joda.time.DateTime maxIngestedEventTime)
public Iterable<Result<DataSourceMetadataResultValue>> mergeResults(List<Result<DataSourceMetadataResultValue>> results)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.