Class DataSourceMetadataQuery
java.lang.Object
org.apache.druid.query.BaseQuery<Result<DataSourceMetadataResultValue>>
org.apache.druid.query.datasourcemetadata.DataSourceMetadataQuery
- All Implemented Interfaces:
Query<Result<DataSourceMetadataResultValue>>
-
Field Summary
Fields inherited from class org.apache.druid.query.BaseQuery
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDFields inherited from interface org.apache.druid.query.Query
DATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN, UNION_QUERY, WINDOW_OPERATOR -
Constructor Summary
ConstructorsConstructorDescriptionDataSourceMetadataQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, Map<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionbuildResult(org.joda.time.DateTime timestamp, org.joda.time.DateTime maxIngestedEventTime) getType()booleanmergeResults(List<Result<DataSourceMetadataResultValue>> results) toString()withDataSource(DataSource dataSource) withOverriddenContext(Map<String, Object> contextOverrides) Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec.Methods inherited from class org.apache.druid.query.BaseQuery
calculateDuration, checkInterrupted, computeOverriddenContext, computeOverridenContext, context, equals, getContext, getDataSource, getDuration, getGranularity, getId, getIntervals, getQuerySegmentSpec, getResultOrdering, getRunner, getSubQueryId, getTimezone, hashCode, withId, withSqlQueryId, withSubQueryIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.Query
getContextBoolean, getContextHumanReadableBytes, getContextValue, getMostSpecificId, getRequiredColumns, getResultRowSignature, getResultRowSignature, getSingleInterval, getSqlQueryId, getVirtualColumns, mayCollapseQueryDataSource, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority
-
Constructor Details
-
DataSourceMetadataQuery
public DataSourceMetadataQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, Map<String, Object> context)
-
-
Method Details
-
hasFilters
public boolean hasFilters() -
getFilter
-
getType
-
withOverriddenContext
-
withQuerySegmentSpec
Description copied from interface:QueryReturns a new query, identical to this one, but with a different associatedQuerySegmentSpec.This often changes the behavior of
Query.getRunner(QuerySegmentWalker), since most queries inherit that method fromBaseQuery, which implements it by callingQuerySegmentSpec.lookup(org.apache.druid.query.Query<T>, org.apache.druid.query.QuerySegmentWalker). -
withDataSource
-
buildResult
public Iterable<Result<DataSourceMetadataResultValue>> buildResult(org.joda.time.DateTime timestamp, org.joda.time.DateTime maxIngestedEventTime) -
mergeResults
public Iterable<Result<DataSourceMetadataResultValue>> mergeResults(List<Result<DataSourceMetadataResultValue>> results) -
toString
-