public class SearchQueryQueryToolChest extends QueryToolChest<Result<SearchResultValue>,SearchQuery>
| Constructor and Description |
|---|
SearchQueryQueryToolChest(SearchQueryConfig config,
IntervalChunkingQueryRunnerDecorator intervalChunkingQueryRunnerDecorator) |
| Modifier and Type | Method and Description |
|---|---|
CacheStrategy<Result<SearchResultValue>,Object,SearchQuery> |
getCacheStrategy(SearchQuery query)
Returns a CacheStrategy to be used to load data into the cache and remove it from the cache.
|
com.google.common.collect.Ordering<Result<SearchResultValue>> |
getOrdering() |
com.fasterxml.jackson.core.type.TypeReference<Result<SearchResultValue>> |
getResultTypeReference()
Returns a TypeReference object that is just passed through to Jackson in order to deserialize
the results of this type of query.
|
com.metamx.emitter.service.ServiceMetricEvent.Builder |
makeMetricBuilder(SearchQuery query)
Creates a builder that is used to generate a metric for this specific query type.
|
com.google.common.base.Function<Result<SearchResultValue>,Result<SearchResultValue>> |
makePreComputeManipulatorFn(SearchQuery query,
MetricManipulationFn fn)
Creates a Function that can take in a ResultType and return a new ResultType having applied
the MetricManipulatorFn to each of the metrics.
|
QueryRunner<Result<SearchResultValue>> |
mergeResults(QueryRunner<Result<SearchResultValue>> runner)
This method wraps a QueryRunner.
|
com.metamx.common.guava.Sequence<Result<SearchResultValue>> |
mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SearchResultValue>>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
com.metamx.common.guava.Sequence<Result<SearchResultValue>> |
mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SearchResultValue>>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
QueryRunner<Result<SearchResultValue>> |
preMergeQueryDecoration(QueryRunner<Result<SearchResultValue>> runner)
Wraps a QueryRunner.
|
filterSegments, makePostComputeManipulatorFn, postMergeQueryDecoration@Inject public SearchQueryQueryToolChest(SearchQueryConfig config, IntervalChunkingQueryRunnerDecorator intervalChunkingQueryRunnerDecorator)
public QueryRunner<Result<SearchResultValue>> mergeResults(QueryRunner<Result<SearchResultValue>> runner)
QueryToolChestmergeResults in class QueryToolChest<Result<SearchResultValue>,SearchQuery>runner - A QueryRunner that provides a series of ResultType objects in time order (ascending)public com.metamx.common.guava.Sequence<Result<SearchResultValue>> mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SearchResultValue>>> seqOfSequences)
QueryToolChestmergeSequences in class QueryToolChest<Result<SearchResultValue>,SearchQuery>seqOfSequences - sequence of sequences to be mergedpublic com.metamx.common.guava.Sequence<Result<SearchResultValue>> mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SearchResultValue>>> seqOfSequences)
QueryToolChestmergeSequencesUnordered in class QueryToolChest<Result<SearchResultValue>,SearchQuery>seqOfSequences - sequence of sequences to be mergedpublic com.metamx.emitter.service.ServiceMetricEvent.Builder makeMetricBuilder(SearchQuery query)
QueryToolChestmakeMetricBuilder in class QueryToolChest<Result<SearchResultValue>,SearchQuery>query - The query that is being processedpublic com.google.common.base.Function<Result<SearchResultValue>,Result<SearchResultValue>> makePreComputeManipulatorFn(SearchQuery query, MetricManipulationFn fn)
QueryToolChestmakePreComputeManipulatorFn in class QueryToolChest<Result<SearchResultValue>,SearchQuery>query - The Query that is currently being processedfn - The function that should be applied to all metrics in the resultspublic com.fasterxml.jackson.core.type.TypeReference<Result<SearchResultValue>> getResultTypeReference()
QueryToolChestgetResultTypeReference in class QueryToolChest<Result<SearchResultValue>,SearchQuery>public CacheStrategy<Result<SearchResultValue>,Object,SearchQuery> getCacheStrategy(SearchQuery query)
QueryToolChestgetCacheStrategy in class QueryToolChest<Result<SearchResultValue>,SearchQuery>query - The query whose results might be cachedpublic QueryRunner<Result<SearchResultValue>> preMergeQueryDecoration(QueryRunner<Result<SearchResultValue>> runner)
QueryToolChestpreMergeQueryDecoration in class QueryToolChest<Result<SearchResultValue>,SearchQuery>runner - The runner to be wrappedpublic com.google.common.collect.Ordering<Result<SearchResultValue>> getOrdering()
Copyright © 2011–2015. All rights reserved.