| Modifier and Type | Interface and Description |
|---|---|
interface |
CacheStrategy<T,CacheType,QueryType extends Query<T>>
Handles caching-related tasks for a particular query type.
|
class |
DefaultQueryMetrics<QueryType extends Query<?>>
DefaultQueryMetrics is unsafe for use from multiple threads.
|
interface |
QueryMetrics<QueryType extends Query<?>>
Abstraction wrapping
ServiceMetricEvent.Builder and allowing to
control what metrics are actually emitted, what dimensions do they have, etc. |
interface |
QueryRunnerFactory<T,QueryType extends Query<T>>
An interface that defines the nitty gritty implementation details of a Query on a Segment
|
class |
QueryToolChest<ResultType,QueryType extends Query<ResultType>>
The broker-side (also used by server in some cases) API for a specific Query type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseQuery<T> |
| Modifier and Type | Method and Description |
|---|---|
<T,QueryType extends Query<T>> |
DefaultQueryRunnerFactoryConglomerate.findFactory(QueryType query) |
<T,QueryType extends Query<T>> |
QueryRunnerFactoryConglomerate.findFactory(QueryType query) |
<T,QueryType extends Query<T>> |
ReflectionQueryToolChestWarehouse.getToolChest(QueryType query)
Deprecated.
|
<T,QueryType extends Query<T>> |
QueryToolChestWarehouse.getToolChest(QueryType query) |
<T,QueryType extends Query<T>> |
MapQueryToolChestWarehouse.getToolChest(QueryType query) |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
QueryPlus.getQuery() |
Query |
QueryDataSource.getQuery() |
default Query<T> |
Query.optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext) |
static <T> Query<T> |
QueryContexts.verifyMaxQueryTimeout(Query<T> query,
long maxQueryTimeout) |
Query<T> |
Query.withDataSource(DataSource dataSource) |
default Query<T> |
Query.withDefaultSubQueryId() |
static <T> Query<T> |
QueryContexts.withDefaultTimeout(Query<T> query,
long defaultTimeout) |
Query<T> |
Query.withId(String id) |
Query<T> |
BaseQuery.withId(String id) |
default Query<T> |
Query.withLane(String lane) |
static <T> Query<T> |
QueryContexts.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 associated
QuerySegmentSpec. |
static <T> Query<T> |
Queries.withSpecificSegments(Query<T> query,
List<SegmentDescriptor> descriptors)
Rewrite "query" to refer to some specific segment descriptors.
|
default Query<T> |
Query.withSqlQueryId(String sqlQueryId) |
Query<T> |
BaseQuery.withSqlQueryId(String sqlQueryId) |
Query<T> |
Query.withSubQueryId(String subQueryId)
Returns a copy of this query with a new subQueryId (see
getSubQueryId(). |
Query<T> |
BaseQuery.withSubQueryId(String subQueryId) |
static <T> Query<T> |
QueryContexts.withTimeout(Query<T> query,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
QueryMetrics<Query<?>> |
GenericQueryMetricsFactory.makeMetrics(Query<?> query)
Creates a
QueryMetrics for query, which doesn't have predefined QueryMetrics subclass. |
QueryMetrics<Query<?>> |
DefaultGenericQueryMetricsFactory.makeMetrics(Query<?> query) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
QueryToolChest.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.
|
static <T> boolean |
QueryContexts.getEnableJoinFilterPushDown(Query<T> query) |
static <T> boolean |
QueryContexts.getEnableJoinFilterRewrite(Query<T> query) |
static <T> boolean |
QueryContexts.getEnableJoinFilterRewriteValueColumnFilters(Query<T> query) |
static <T> boolean |
QueryContexts.getEnableParallelMerges(Query<T> query) |
static <T> long |
QueryContexts.getJoinFilterRewriteMaxSize(Query<T> query) |
static <T> String |
QueryContexts.getLane(Query<T> query) |
static <T> long |
QueryContexts.getMaxQueuedBytes(Query<T> query,
long defaultValue) |
static <T> long |
QueryContexts.getMaxScatterGatherBytes(Query<T> query) |
static <T> int |
QueryContexts.getMaxSubqueryRows(Query<T> query,
int defaultSize) |
static <T> int |
QueryContexts.getParallelMergeInitialYieldRows(Query<T> query,
int defaultValue) |
static <T> int |
QueryContexts.getParallelMergeParallelism(Query<T> query,
int defaultValue) |
static <T> int |
QueryContexts.getParallelMergeSmallBatchRows(Query<T> query,
int defaultValue) |
static <T> int |
QueryContexts.getPriority(Query<T> query) |
static <T> int |
QueryContexts.getPriority(Query<T> query,
int defaultValue) |
<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.
|
static <T> long |
QueryContexts.getTimeout(Query<T> query) |
static <T> long |
QueryContexts.getTimeout(Query<T> query,
long defaultTimeout) |
static <T> int |
QueryContexts.getUncoveredIntervalsLimit(Query<T> query) |
static <T> int |
QueryContexts.getUncoveredIntervalsLimit(Query<T> query,
int defaultValue) |
static <T> QueryContexts.Vectorize |
QueryContexts.getVectorize(Query<T> query,
QueryContexts.Vectorize defaultValue) |
static <T> int |
QueryContexts.getVectorSize(Query<T> query,
int defaultSize) |
static <T> boolean |
QueryContexts.hasTimeout(Query<T> query) |
static <T> boolean |
QueryContexts.isBySegment(Query<T> query) |
static <T> boolean |
QueryContexts.isBySegment(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isFinalize(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isPopulateCache(Query<T> query) |
static <T> boolean |
QueryContexts.isPopulateCache(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isPopulateResultLevelCache(Query<T> query) |
static <T> boolean |
QueryContexts.isPopulateResultLevelCache(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isSerializeDateTimeAsLong(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isSerializeDateTimeAsLongInner(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isUseCache(Query<T> query) |
static <T> boolean |
QueryContexts.isUseCache(Query<T> query,
boolean defaultValue) |
static <T> boolean |
QueryContexts.isUseResultLevelCache(Query<T> query) |
static <T> boolean |
QueryContexts.isUseResultLevelCache(Query<T> query,
boolean defaultValue) |
QueryMetrics<Query<?>> |
GenericQueryMetricsFactory.makeMetrics(Query<?> query)
Creates a
QueryMetrics for query, which doesn't have predefined QueryMetrics subclass. |
QueryMetrics<Query<?>> |
DefaultGenericQueryMetricsFactory.makeMetrics(Query<?> query) |
static <T> QueryMetrics<?> |
DruidMetrics.makeRequestMetrics(GenericQueryMetricsFactory queryMetricsFactory,
QueryToolChest<T,Query<T>> toolChest,
Query<T> query,
String remoteAddr) |
void |
QueryWatcher.registerQueryFuture(Query<?> query,
com.google.common.util.concurrent.ListenableFuture<?> future)
QueryRunners must use this method to register any pending queries.
|
static <T> Query<T> |
QueryContexts.verifyMaxQueryTimeout(Query<T> query,
long maxQueryTimeout) |
static <T> Query<T> |
QueryContexts.withDefaultTimeout(Query<T> query,
long defaultTimeout) |
static <T> Query<T> |
QueryContexts.withMaxScatterGatherBytes(Query<T> query,
long maxScatterGatherBytesLimit) |
QueryConfig |
QueryConfig.withOverrides(Query<?> query) |
<U> QueryPlus<U> |
QueryPlus.withQuery(Query<U> replacementQuery)
Returns a QueryPlus object with
QueryMetrics from this QueryPlus object, and the provided Query. |
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> |
QueryContexts.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.
|
| Modifier and Type | Method and 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 has
QueryMetrics (QueryPlus.getQueryMetrics() returns not
null), or returns a new QueryPlus object with Query from this QueryPlus and QueryMetrics created using the
given QueryToolChest, via QueryToolChest.makeMetrics(Query) method. |
| Constructor and Description |
|---|
QueryDataSource(Query query) |
| Modifier and Type | Class and Description |
|---|---|
class |
DataSourceMetadataQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<Result<DataSourceMetadataResultValue>> |
DataSourceMetadataQuery.withDataSource(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
QueryMetrics<Query<?>> |
DataSourceQueryQueryToolChest.makeMetrics(DataSourceMetadataQuery query) |
| Modifier and Type | Class and Description |
|---|---|
class |
GroupByQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<ResultRow> |
GroupByQuery.withDataSource(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GroupByQueryQueryToolChest.canPerformSubquery(Query<?> subquery) |
BinaryOperator<ResultRow> |
GroupByQueryQueryToolChest.createMergeFn(Query<ResultRow> query) |
Comparator<ResultRow> |
GroupByQueryQueryToolChest.createResultComparator(Query<ResultRow> query) |
GroupByQuery.Builder |
GroupByQuery.Builder.setDataSource(Query query) |
| Modifier and Type | Method and Description |
|---|---|
default BinaryOperator<ResultRow> |
GroupByStrategy.createMergeFn(Query<ResultRow> query)
See
QueryToolChest.createMergeFn(Query) for details, allows
GroupByQueryQueryToolChest to delegate implementation to the strategy |
BinaryOperator<ResultRow> |
GroupByStrategyV2.createMergeFn(Query<ResultRow> queryParam) |
default Comparator<ResultRow> |
GroupByStrategy.createResultComparator(Query<ResultRow> queryParam)
See
QueryToolChest.createResultComparator(Query), allows
GroupByQueryQueryToolChest to delegate implementation to the strategy |
Comparator<ResultRow> |
GroupByStrategyV2.createResultComparator(Query<ResultRow> queryParam) |
| Modifier and Type | Method and Description |
|---|---|
QueryMetrics<Query<?>> |
SegmentMetadataQueryQueryToolChest.makeMetrics(SegmentMetadataQuery query) |
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator<SegmentAnalysis> |
SegmentMetadataQueryQueryToolChest.createMergeFn(Query<SegmentAnalysis> query) |
Comparator<SegmentAnalysis> |
SegmentMetadataQueryQueryToolChest.createResultComparator(Query<SegmentAnalysis> query) |
| Modifier and Type | Class and Description |
|---|---|
class |
SegmentMetadataQuery |
| Modifier and Type | Method and 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) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Query<?>> |
DataSourceAnalysis.getBaseQuery()
Returns the bottommost (i.e.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ScanQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<ScanResultValue> |
ScanQuery.withDataSource(DataSource dataSource) |
Query<ScanResultValue> |
ScanQuery.withOverriddenContext(Map<String,Object> contextOverrides) |
Query<ScanResultValue> |
ScanQuery.withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec) |
| Modifier and Type | Method and Description |
|---|---|
QueryMetrics<Query<?>> |
ScanQueryQueryToolChest.makeMetrics(ScanQuery query) |
| Modifier and Type | Class and Description |
|---|---|
class |
SearchQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<Result<SearchResultValue>> |
SearchQuery.withDataSource(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator<Result<SearchResultValue>> |
SearchQueryQueryToolChest.createMergeFn(Query<Result<SearchResultValue>> query) |
Comparator<Result<SearchResultValue>> |
SearchQueryQueryToolChest.createResultComparator(Query<Result<SearchResultValue>> query) |
| Constructor and Description |
|---|
DefaultSearchQueryMetrics(QueryMetrics<Query<?>> queryMetrics) |
| Modifier and Type | Class and Description |
|---|---|
class |
SelectQuery
Deprecated.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
<T> QueryRunner<T> |
SpecificSegmentSpec.lookup(Query<T> query,
QuerySegmentWalker walker) |
<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) |
| Modifier and Type | Class and Description |
|---|---|
class |
TimeBoundaryQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<Result<TimeBoundaryResultValue>> |
TimeBoundaryQuery.withDataSource(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
QueryMetrics<Query<?>> |
TimeBoundaryQueryQueryToolChest.makeMetrics(TimeBoundaryQuery query) |
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator<Result<TimeBoundaryResultValue>> |
TimeBoundaryQueryQueryToolChest.createMergeFn(Query<Result<TimeBoundaryResultValue>> query) |
Comparator<Result<TimeBoundaryResultValue>> |
TimeBoundaryQueryQueryToolChest.createResultComparator(Query<Result<TimeBoundaryResultValue>> query) |
| Modifier and Type | Class and Description |
|---|---|
class |
TimeseriesQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<Result<TimeseriesResultValue>> |
TimeseriesQuery.optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext) |
Query<Result<TimeseriesResultValue>> |
TimeseriesQuery.withDataSource(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator<Result<TimeseriesResultValue>> |
TimeseriesQueryQueryToolChest.createMergeFn(Query<Result<TimeseriesResultValue>> query) |
Comparator<Result<TimeseriesResultValue>> |
TimeseriesQueryQueryToolChest.createResultComparator(Query<Result<TimeseriesResultValue>> query) |
| Modifier and Type | Class and Description |
|---|---|
class |
TopNQuery |
| Modifier and Type | Method and Description |
|---|---|
Query<Result<TopNResultValue>> |
TopNQuery.optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext) |
Query<Result<TopNResultValue>> |
TopNQuery.withDataSource(DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator<Result<TopNResultValue>> |
TopNQueryQueryToolChest.createMergeFn(Query<Result<TopNResultValue>> query) |
Comparator<Result<TopNResultValue>> |
TopNQueryQueryToolChest.createResultComparator(Query<Result<TopNResultValue>> query) |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
Filters.convertToCNFFromQueryContext(Query query,
Filter filter) |
| Modifier and Type | Method and Description |
|---|---|
static Function<SegmentReference,SegmentReference> |
Joinables.createSegmentMapFn(List<PreJoinableClause> clauses,
JoinableFactory joinableFactory,
AtomicLong cpuTimeAccumulator,
Query<?> query)
Creates a Function that maps base segments to
HashJoinSegment if needed (i.e. |
| Modifier and Type | Method and Description |
|---|---|
static JoinFilterRewriteConfig |
JoinFilterRewriteConfig.forQuery(Query<?> query) |
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.