public class SelectQueryQueryToolChest extends QueryToolChest<Result<SelectResultValue>,SelectQuery>
| Constructor and Description |
|---|
SelectQueryQueryToolChest(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
IntervalChunkingQueryRunnerDecorator intervalChunkingQueryRunnerDecorator) |
| Modifier and Type | Method and Description |
|---|---|
CacheStrategy<Result<SelectResultValue>,Object,SelectQuery> |
getCacheStrategy(SelectQuery 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<SelectResultValue>> |
getOrdering() |
com.fasterxml.jackson.core.type.TypeReference<Result<SelectResultValue>> |
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(SelectQuery query)
Creates a builder that is used to generate a metric for this specific query type.
|
com.google.common.base.Function<Result<SelectResultValue>,Result<SelectResultValue>> |
makePreComputeManipulatorFn(SelectQuery 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<SelectResultValue>> |
mergeResults(QueryRunner<Result<SelectResultValue>> queryRunner)
This method wraps a QueryRunner.
|
com.metamx.common.guava.Sequence<Result<SelectResultValue>> |
mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SelectResultValue>>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
com.metamx.common.guava.Sequence<Result<SelectResultValue>> |
mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SelectResultValue>>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
QueryRunner<Result<SelectResultValue>> |
preMergeQueryDecoration(QueryRunner<Result<SelectResultValue>> runner)
Wraps a QueryRunner.
|
filterSegments, makePostComputeManipulatorFn, postMergeQueryDecoration@Inject
public SelectQueryQueryToolChest(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
IntervalChunkingQueryRunnerDecorator intervalChunkingQueryRunnerDecorator)
public QueryRunner<Result<SelectResultValue>> mergeResults(QueryRunner<Result<SelectResultValue>> queryRunner)
QueryToolChestmergeResults in class QueryToolChest<Result<SelectResultValue>,SelectQuery>queryRunner - A QueryRunner that provides a series of ResultType objects in time order (ascending)public com.metamx.common.guava.Sequence<Result<SelectResultValue>> mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SelectResultValue>>> seqOfSequences)
QueryToolChestmergeSequences in class QueryToolChest<Result<SelectResultValue>,SelectQuery>seqOfSequences - sequence of sequences to be mergedpublic com.metamx.common.guava.Sequence<Result<SelectResultValue>> mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<SelectResultValue>>> seqOfSequences)
QueryToolChestmergeSequencesUnordered in class QueryToolChest<Result<SelectResultValue>,SelectQuery>seqOfSequences - sequence of sequences to be mergedpublic com.metamx.emitter.service.ServiceMetricEvent.Builder makeMetricBuilder(SelectQuery query)
QueryToolChestmakeMetricBuilder in class QueryToolChest<Result<SelectResultValue>,SelectQuery>query - The query that is being processedpublic com.google.common.base.Function<Result<SelectResultValue>,Result<SelectResultValue>> makePreComputeManipulatorFn(SelectQuery query, MetricManipulationFn fn)
QueryToolChestmakePreComputeManipulatorFn in class QueryToolChest<Result<SelectResultValue>,SelectQuery>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<SelectResultValue>> getResultTypeReference()
QueryToolChestgetResultTypeReference in class QueryToolChest<Result<SelectResultValue>,SelectQuery>public CacheStrategy<Result<SelectResultValue>,Object,SelectQuery> getCacheStrategy(SelectQuery query)
QueryToolChestgetCacheStrategy in class QueryToolChest<Result<SelectResultValue>,SelectQuery>query - The query whose results might be cachedpublic QueryRunner<Result<SelectResultValue>> preMergeQueryDecoration(QueryRunner<Result<SelectResultValue>> runner)
QueryToolChestpreMergeQueryDecoration in class QueryToolChest<Result<SelectResultValue>,SelectQuery>runner - The runner to be wrappedpublic com.google.common.collect.Ordering<Result<SelectResultValue>> getOrdering()
Copyright © 2011–2015. All rights reserved.