Uses of Interface
org.apache.druid.query.Query
-
-
Uses of Query in org.apache.druid.query
Classes in org.apache.druid.query with type parameters of type Query Modifier and Type Interface Description interfaceCacheStrategy<T,CacheType,QueryType extends Query<T>>Handles caching-related tasks for a particular query type.classDefaultQueryMetrics<QueryType extends Query<?>>DefaultQueryMetrics is unsafe for use from multiple threads.interfaceQueryMetrics<QueryType extends Query<?>>Abstraction wrappingServiceMetricEvent.Builderand allowing to control what metrics are actually emitted, what dimensions do they have, etc.interfaceQueryRunnerFactory<T,QueryType extends Query<T>>An interface that defines the nitty gritty implementation details of a Query on a SegmentclassQueryToolChest<ResultType,QueryType extends Query<ResultType>>The broker-side (also used by server in some cases) API for a specific Query type.Classes in org.apache.druid.query that implement Query Modifier and Type Class Description classBaseQuery<T>Methods in org.apache.druid.query with type parameters of type Query Modifier and Type Method Description static <K,J extends Query<K>>
FluentQueryRunner<K>FluentQueryRunner. create(QueryRunner<K> runner, QueryToolChest<K,J> toolchest)<T,QueryType extends Query<T>>
QueryRunnerFactory<T,QueryType>DefaultQueryRunnerFactoryConglomerate. findFactory(QueryType query)<T,QueryType extends Query<T>>
QueryRunnerFactory<T,QueryType>QueryRunnerFactoryConglomerate. findFactory(QueryType query)<T,QueryType extends Query<T>>
QueryToolChest<T,QueryType>MapQueryToolChestWarehouse. getToolChest(QueryType query)<T,QueryType extends Query<T>>
QueryToolChest<T,QueryType>QueryToolChestWarehouse. getToolChest(QueryType query)<T,QueryType extends Query<T>>
QueryToolChest<T,QueryType>ReflectionQueryToolChestWarehouse. getToolChest(QueryType query)Deprecated.Methods in org.apache.druid.query that return Query Modifier and Type Method Description QueryQueryDataSource. getQuery()Query<T>QueryPlus. getQuery()default Query<T>Query. optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext)static <T> Query<T>Queries. withBaseDataSource(Query<T> query, DataSource newBaseDataSource)Rewrite "query" to refer to some specific base datasource, instead of the one it currently refers to.Query<T>Query. withDataSource(DataSource dataSource)default Query<T>Query. withDefaultSubQueryId()static <T> Query<T>Queries. withDefaultTimeout(Query<T> query, long defaultTimeout)Query<T>BaseQuery. withId(String id)Query<T>Query. withId(String id)default Query<T>Query. withLane(String lane)static <T> Query<T>Queries. withMaxScatterGatherBytes(Query<T> query, long maxScatterGatherBytesLimit)Query<T>Query. withOverriddenContext(Map<String,Object> contextOverride)default Query<T>Query. withPriority(int priority)Query<T>Query. withQuerySegmentSpec(QuerySegmentSpec spec)Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec.static <T> Query<T>Queries. withSpecificSegments(Query<T> query, List<SegmentDescriptor> descriptors)Rewrite "query" to refer to some specific segment descriptors.Query<T>BaseQuery. withSqlQueryId(String sqlQueryId)default Query<T>Query. withSqlQueryId(String sqlQueryId)Query<T>BaseQuery. withSubQueryId(String subQueryId)Query<T>Query. withSubQueryId(String subQueryId)Returns a copy of this query with a new subQueryId (seegetSubQueryId().static <T> Query<T>Queries. withTimeout(Query<T> query, long timeout)Methods in org.apache.druid.query that return types with arguments of type Query Modifier and Type Method Description QueryMetrics<Query<?>>DefaultGenericQueryMetricsFactory. makeMetrics()QueryMetrics<Query<?>>DefaultGenericQueryMetricsFactory. makeMetrics(Query<?> query)QueryMetrics<Query<?>>GenericQueryMetricsFactory. makeMetrics()Creates aQueryMetricswhich doesn't have predefined QueryMetrics subclass.QueryMetrics<Query<?>>GenericQueryMetricsFactory. makeMetrics(Query<?> query)Creates aQueryMetricsfor query, which doesn't have predefined QueryMetrics subclass.Methods in org.apache.druid.query with parameters of type Query Modifier and Type Method Description booleanQueryToolChest. canPerformSubquery(Query<?> subquery)Returns whether this toolchest is able to handle the provided subquery.BinaryOperator<ResultType>QueryToolChest. createMergeFn(Query<ResultType> query)Creates a merge function that is used to merge intermediate aggregates from historicals in broker.Comparator<ResultType>QueryToolChest. createResultComparator(Query<ResultType> query)Creates an ordering comparator that is used to order results.Function<SegmentReference,SegmentReference>DataSource. createSegmentMapFunction(Query query, AtomicLong cpuTimeAcc)Returns a segment function on to how to segment should be modified.Function<SegmentReference,SegmentReference>FilteredDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTimeAccumulator)Function<SegmentReference,SegmentReference>FrameBasedInlineDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTimeAcc)Function<SegmentReference,SegmentReference>InlineDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTimeAcc)Function<SegmentReference,SegmentReference>JoinDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTimeAccumulator)Function<SegmentReference,SegmentReference>LookupDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTime)Function<SegmentReference,SegmentReference>QueryDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTime)Function<SegmentReference,SegmentReference>TableDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTime)Function<SegmentReference,SegmentReference>UnionDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTime)Function<SegmentReference,SegmentReference>UnnestDataSource. createSegmentMapFunction(Query query, AtomicLong cpuTimeAccumulator)Druids.ScanQueryBuilderDruids.ScanQueryBuilder. dataSource(Query<?> q)<T> QueryRunner<T>QuerySegmentWalker. getQueryRunnerForIntervals(Query<T> query, Iterable<org.joda.time.Interval> intervals)Gets the Queryable for a given interval, the Queryable returned can be any version(s) or partitionNumber(s) such that it represents the interval.<T> QueryRunner<T>QuerySegmentWalker. getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs)Gets the Queryable for a given list of SegmentDescriptors.QueryMetrics<Query<?>>DefaultGenericQueryMetricsFactory. makeMetrics(Query<?> query)QueryMetrics<Query<?>>GenericQueryMetricsFactory. makeMetrics(Query<?> query)Creates aQueryMetricsfor query, which doesn't have predefined QueryMetrics subclass.static <T> QueryMetrics<?>DruidMetrics. makeRequestMetrics(GenericQueryMetricsFactory queryMetricsFactory, QueryToolChest<T,Query<T>> toolChest, Query<T> query, String remoteAddr)voidQueryWatcher. registerQueryFuture(Query<?> query, com.google.common.util.concurrent.ListenableFuture<?> future)QueryRunners must use this method to register any pending queries.static <T> Query<T>Queries. withBaseDataSource(Query<T> query, DataSource newBaseDataSource)Rewrite "query" to refer to some specific base datasource, instead of the one it currently refers to.static <T> Query<T>Queries. withDefaultTimeout(Query<T> query, long defaultTimeout)static <T> Query<T>Queries. withMaxScatterGatherBytes(Query<T> query, long maxScatterGatherBytesLimit)<U> QueryPlus<U>QueryPlus. withQuery(Query<U> replacementQuery)Returns a QueryPlus object withQueryMetricsfrom this QueryPlus object, and the providedQuery.static <T> Query<T>Queries. withSpecificSegments(Query<T> query, List<SegmentDescriptor> descriptors)Rewrite "query" to refer to some specific segment descriptors.static <T> Query<T>Queries. withTimeout(Query<T> query, long timeout)static <T> QueryPlus<T>QueryPlus. wrap(Query<T> query)Returns the minimum bare QueryPlus object with the given query.Method parameters in org.apache.druid.query with type arguments of type Query Modifier and Type Method Description static <T> QueryMetrics<?>DruidMetrics. makeRequestMetrics(GenericQueryMetricsFactory queryMetricsFactory, QueryToolChest<T,Query<T>> toolChest, Query<T> query, String remoteAddr)static <T> QueryRunner<T>CPUTimeMetricQueryRunner. safeBuild(QueryRunner<T> delegate, QueryToolChest<T,? extends Query<T>> queryToolChest, ServiceEmitter emitter, AtomicLong accumulator, boolean report)QueryPlus<T>QueryPlus. withQueryMetrics(QueryToolChest<T,? extends Query<T>> queryToolChest)Returns the same QueryPlus object, if it already hasQueryMetrics(QueryPlus.getQueryMetrics()returns not null), or returns a new QueryPlus object withQueryfrom this QueryPlus and QueryMetrics created using the givenQueryToolChest, viaQueryToolChest.makeMetrics(Query)method.Constructors in org.apache.druid.query with parameters of type Query Constructor Description QueryDataSource(Query query)Constructor parameters in org.apache.druid.query with type arguments of type Query Constructor Description DefaultQueryRunnerFactoryConglomerate(Map<Class<? extends Query>,QueryRunnerFactory> factories)FinalizeResultsQueryRunner(QueryRunner<T> baseRunner, QueryToolChest<T,Query<T>> toolChest)FluentQueryRunner(QueryRunner<T> runner, QueryToolChest<T,Query<T>> toolChest)MapQueryToolChestWarehouse(Map<Class<? extends Query>,QueryToolChest> toolchests)MetricsEmittingQueryRunner(ServiceEmitter emitter, QueryToolChest<T,? extends Query<T>> queryToolChest, QueryRunner<T> queryRunner, ObjLongConsumer<? super QueryMetrics<?>> reportMetric, Consumer<QueryMetrics<?>> applyCustomDimensions)ReferenceCountingSegmentQueryRunner(QueryRunnerFactory<T,Query<T>> factory, SegmentReference segment, SegmentDescriptor descriptor)ResultMergeQueryRunner(QueryRunner<T> baseRunner, Function<Query<T>,Comparator<T>> comparatorGenerator, Function<Query<T>,BinaryOperator<T>> mergeFnGenerator) -
Uses of Query in org.apache.druid.query.datasourcemetadata
Classes in org.apache.druid.query.datasourcemetadata that implement Query Modifier and Type Class Description classDataSourceMetadataQueryMethods in org.apache.druid.query.datasourcemetadata that return Query Modifier and Type Method Description Query<Result<DataSourceMetadataResultValue>>DataSourceMetadataQuery. withDataSource(DataSource dataSource)Methods in org.apache.druid.query.datasourcemetadata that return types with arguments of type Query Modifier and Type Method Description QueryMetrics<Query<?>>DataSourceQueryQueryToolChest. makeMetrics(DataSourceMetadataQuery query) -
Uses of Query in org.apache.druid.query.groupby
Classes in org.apache.druid.query.groupby that implement Query Modifier and Type Class Description classGroupByQueryMethods in org.apache.druid.query.groupby that return Query Modifier and Type Method Description Query<ResultRow>GroupByQuery. withDataSource(DataSource dataSource)Methods in org.apache.druid.query.groupby with parameters of type Query Modifier and Type Method Description booleanGroupByQueryQueryToolChest. canPerformSubquery(Query<?> subquery)BinaryOperator<ResultRow>GroupByQueryQueryToolChest. createMergeFn(Query<ResultRow> query)BinaryOperator<ResultRow>GroupingEngine. createMergeFn(Query<ResultRow> queryParam)SeeQueryToolChest.createMergeFn(Query)for details, allowsGroupByQueryQueryToolChestto delegate implementation to the strategyComparator<ResultRow>GroupByQueryQueryToolChest. createResultComparator(Query<ResultRow> query)Comparator<ResultRow>GroupingEngine. createResultComparator(Query<ResultRow> queryParam)SeeQueryToolChest.createResultComparator(Query), allowsGroupByQueryQueryToolChestto delegate implementation to the strategyGroupByQuery.BuilderGroupByQuery.Builder. setDataSource(Query query) -
Uses of Query in org.apache.druid.query.metadata
Methods in org.apache.druid.query.metadata that return types with arguments of type Query Modifier and Type Method Description QueryMetrics<Query<?>>SegmentMetadataQueryQueryToolChest. makeMetrics(SegmentMetadataQuery query)Methods in org.apache.druid.query.metadata with parameters of type Query Modifier and Type Method Description BinaryOperator<SegmentAnalysis>SegmentMetadataQueryQueryToolChest. createMergeFn(Query<SegmentAnalysis> query)Comparator<SegmentAnalysis>SegmentMetadataQueryQueryToolChest. createResultComparator(Query<SegmentAnalysis> query) -
Uses of Query in org.apache.druid.query.metadata.metadata
Classes in org.apache.druid.query.metadata.metadata that implement Query Modifier and Type Class Description classSegmentMetadataQueryMethods in org.apache.druid.query.metadata.metadata that return Query Modifier and Type Method Description Query<SegmentAnalysis>SegmentMetadataQuery. withColumns(ColumnIncluderator includerator)Query<SegmentAnalysis>SegmentMetadataQuery. withDataSource(DataSource dataSource)Query<SegmentAnalysis>SegmentMetadataQuery. withOverriddenContext(Map<String,Object> contextOverride)Query<SegmentAnalysis>SegmentMetadataQuery. withQuerySegmentSpec(QuerySegmentSpec spec) -
Uses of Query in org.apache.druid.query.operator
Classes in org.apache.druid.query.operator that implement Query Modifier and Type Class Description classWindowOperatorQueryA query that can compute window functions on top of a completely in-memory inline datasource or query results.Methods in org.apache.druid.query.operator that return Query Modifier and Type Method Description Query<RowsAndColumns>WindowOperatorQuery. withDataSource(DataSource dataSource)Query<RowsAndColumns>WindowOperatorQuery. withOperators(List<OperatorFactory> operators)Query<RowsAndColumns>WindowOperatorQuery. withOverriddenContext(Map<String,Object> contextOverride)Query<RowsAndColumns>WindowOperatorQuery. withQuerySegmentSpec(QuerySegmentSpec spec) -
Uses of Query in org.apache.druid.query.planning
Methods in org.apache.druid.query.planning that return types with arguments of type Query Modifier and Type Method Description Optional<Query<?>>DataSourceAnalysis. getBaseQuery()Returns the bottom-most (i.e.Methods in org.apache.druid.query.planning with parameters of type Query Modifier and Type Method Description DataSourceAnalysisDataSourceAnalysis. maybeWithBaseQuery(Query<?> query)Returns the data source analysis with or without the updated query.Constructors in org.apache.druid.query.planning with parameters of type Query Constructor Description DataSourceAnalysis(DataSource baseDataSource, Query<?> baseQuery, DimFilter joinBaseTableFilter, List<PreJoinableClause> preJoinableClauses) -
Uses of Query in org.apache.druid.query.scan
Classes in org.apache.druid.query.scan that implement Query Modifier and Type Class Description classScanQueryMethods in org.apache.druid.query.scan that return types with arguments of type Query Modifier and Type Method Description QueryMetrics<Query<?>>ScanQueryQueryToolChest. makeMetrics(ScanQuery query) -
Uses of Query in org.apache.druid.query.search
Classes in org.apache.druid.query.search that implement Query Modifier and Type Class Description classSearchQueryMethods in org.apache.druid.query.search that return Query Modifier and Type Method Description Query<Result<SearchResultValue>>SearchQuery. withDataSource(DataSource dataSource)Methods in org.apache.druid.query.search with parameters of type Query Modifier and Type Method Description BinaryOperator<Result<SearchResultValue>>SearchQueryQueryToolChest. createMergeFn(Query<Result<SearchResultValue>> query)Comparator<Result<SearchResultValue>>SearchQueryQueryToolChest. createResultComparator(Query<Result<SearchResultValue>> query)Constructor parameters in org.apache.druid.query.search with type arguments of type Query Constructor Description DefaultSearchQueryMetrics(QueryMetrics<Query<?>> queryMetrics) -
Uses of Query in org.apache.druid.query.select
Classes in org.apache.druid.query.select that implement Query Modifier and Type Class Description classSelectQueryDeprecated.Methods in org.apache.druid.query.select that return Query Modifier and Type Method Description Query<Object>SelectQuery. withDataSource(DataSource dataSource)Deprecated.Query<Object>SelectQuery. withId(String id)Deprecated.Query<Object>SelectQuery. withOverriddenContext(Map<String,Object> contextOverride)Deprecated.Query<Object>SelectQuery. withQuerySegmentSpec(QuerySegmentSpec spec)Deprecated.Query<Object>SelectQuery. withSubQueryId(String subQueryId)Deprecated. -
Uses of Query in org.apache.druid.query.spec
Methods in org.apache.druid.query.spec with parameters of type Query Modifier and Type Method Description <T> QueryRunner<T>MultipleIntervalSegmentSpec. lookup(Query<T> query, QuerySegmentWalker walker)<T> QueryRunner<T>MultipleSpecificSegmentSpec. lookup(Query<T> query, QuerySegmentWalker walker)<T> QueryRunner<T>QuerySegmentSpec. lookup(Query<T> query, QuerySegmentWalker walker)<T> QueryRunner<T>SpecificSegmentSpec. lookup(Query<T> query, QuerySegmentWalker walker) -
Uses of Query in org.apache.druid.query.timeboundary
Classes in org.apache.druid.query.timeboundary that implement Query Modifier and Type Class Description classTimeBoundaryQueryMethods in org.apache.druid.query.timeboundary that return Query Modifier and Type Method Description Query<Result<TimeBoundaryResultValue>>TimeBoundaryQuery. withDataSource(DataSource dataSource)Methods in org.apache.druid.query.timeboundary that return types with arguments of type Query Modifier and Type Method Description QueryMetrics<Query<?>>TimeBoundaryQueryQueryToolChest. makeMetrics(TimeBoundaryQuery query)Methods in org.apache.druid.query.timeboundary with parameters of type Query Modifier and Type Method Description BinaryOperator<Result<TimeBoundaryResultValue>>TimeBoundaryQueryQueryToolChest. createMergeFn(Query<Result<TimeBoundaryResultValue>> query)Comparator<Result<TimeBoundaryResultValue>>TimeBoundaryQueryQueryToolChest. createResultComparator(Query<Result<TimeBoundaryResultValue>> query) -
Uses of Query in org.apache.druid.query.timeseries
Classes in org.apache.druid.query.timeseries that implement Query Modifier and Type Class Description classTimeseriesQueryMethods in org.apache.druid.query.timeseries that return Query Modifier and Type Method Description Query<Result<TimeseriesResultValue>>TimeseriesQuery. optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext)Query<Result<TimeseriesResultValue>>TimeseriesQuery. withDataSource(DataSource dataSource)Methods in org.apache.druid.query.timeseries with parameters of type Query Modifier and Type Method Description BinaryOperator<Result<TimeseriesResultValue>>TimeseriesQueryQueryToolChest. createMergeFn(Query<Result<TimeseriesResultValue>> query)Comparator<Result<TimeseriesResultValue>>TimeseriesQueryQueryToolChest. createResultComparator(Query<Result<TimeseriesResultValue>> query) -
Uses of Query in org.apache.druid.query.topn
Classes in org.apache.druid.query.topn that implement Query Modifier and Type Class Description classTopNQueryMethods in org.apache.druid.query.topn that return Query Modifier and Type Method Description Query<Result<TopNResultValue>>TopNQuery. optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext)Query<Result<TopNResultValue>>TopNQuery. withDataSource(DataSource dataSource) -
Uses of Query in org.apache.druid.segment
Methods in org.apache.druid.segment with parameters of type Query Modifier and Type Method Description static booleanVirtualColumns. shouldVectorize(Query<?> query, VirtualColumns virtualColumns, ColumnInspector inspector)Constructor parameters in org.apache.druid.segment with type arguments of type Query Constructor Description QueryableIndexCursorSequenceBuilder(QueryableIndex index, org.joda.time.Interval interval, VirtualColumns virtualColumns, Filter filter, QueryMetrics<? extends Query> metrics, long minDataTimestamp, long maxDataTimestamp, boolean descending) -
Uses of Query in org.apache.druid.segment.filter
Methods in org.apache.druid.segment.filter with parameters of type Query Modifier and Type Method Description static FilterFilters. convertToCNFFromQueryContext(Query query, Filter filter) -
Uses of Query in org.apache.druid.segment.join.filter.rewrite
Methods in org.apache.druid.segment.join.filter.rewrite with parameters of type Query Modifier and Type Method Description static JoinFilterRewriteConfigJoinFilterRewriteConfig. forQuery(Query<?> query)
-