public class TimeseriesQueryQueryToolChest extends QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
Constructor and Description |
---|
TimeseriesQueryQueryToolChest(IntervalChunkingQueryRunnerDecorator intervalChunkingQueryRunnerDecorator) |
Modifier and Type | Method and Description |
---|---|
CacheStrategy<Result<TimeseriesResultValue>,Object,TimeseriesQuery> |
getCacheStrategy(TimeseriesQuery 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<TimeseriesResultValue>> |
getOrdering() |
com.fasterxml.jackson.core.type.TypeReference<Result<TimeseriesResultValue>> |
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(TimeseriesQuery query)
Creates a builder that is used to generate a metric for this specific query type.
|
com.google.common.base.Function<Result<TimeseriesResultValue>,Result<TimeseriesResultValue>> |
makePostComputeManipulatorFn(TimeseriesQuery query,
MetricManipulationFn fn)
Generally speaking this is the exact same thing as makePreComputeManipulatorFn.
|
com.google.common.base.Function<Result<TimeseriesResultValue>,Result<TimeseriesResultValue>> |
makePreComputeManipulatorFn(TimeseriesQuery 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<TimeseriesResultValue>> |
mergeResults(QueryRunner<Result<TimeseriesResultValue>> queryRunner)
This method wraps a QueryRunner.
|
com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>> |
mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>> |
mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
QueryRunner<Result<TimeseriesResultValue>> |
preMergeQueryDecoration(QueryRunner<Result<TimeseriesResultValue>> runner)
Wraps a QueryRunner.
|
filterSegments, postMergeQueryDecoration
@Inject public TimeseriesQueryQueryToolChest(IntervalChunkingQueryRunnerDecorator intervalChunkingQueryRunnerDecorator)
public QueryRunner<Result<TimeseriesResultValue>> mergeResults(QueryRunner<Result<TimeseriesResultValue>> queryRunner)
QueryToolChest
mergeResults
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
queryRunner
- A QueryRunner that provides a series of ResultType objects in time order (ascending)public com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>> mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>>> seqOfSequences)
QueryToolChest
mergeSequences
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
seqOfSequences
- sequence of sequences to be mergedpublic com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>> mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<Result<TimeseriesResultValue>>> seqOfSequences)
QueryToolChest
mergeSequencesUnordered
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
seqOfSequences
- sequence of sequences to be mergedpublic com.metamx.emitter.service.ServiceMetricEvent.Builder makeMetricBuilder(TimeseriesQuery query)
QueryToolChest
makeMetricBuilder
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
query
- The query that is being processedpublic com.fasterxml.jackson.core.type.TypeReference<Result<TimeseriesResultValue>> getResultTypeReference()
QueryToolChest
getResultTypeReference
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
public CacheStrategy<Result<TimeseriesResultValue>,Object,TimeseriesQuery> getCacheStrategy(TimeseriesQuery query)
QueryToolChest
getCacheStrategy
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
query
- The query whose results might be cachedpublic QueryRunner<Result<TimeseriesResultValue>> preMergeQueryDecoration(QueryRunner<Result<TimeseriesResultValue>> runner)
QueryToolChest
preMergeQueryDecoration
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
runner
- The runner to be wrappedpublic com.google.common.collect.Ordering<Result<TimeseriesResultValue>> getOrdering()
public com.google.common.base.Function<Result<TimeseriesResultValue>,Result<TimeseriesResultValue>> makePreComputeManipulatorFn(TimeseriesQuery query, MetricManipulationFn fn)
QueryToolChest
makePreComputeManipulatorFn
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
query
- The Query that is currently being processedfn
- The function that should be applied to all metrics in the resultspublic com.google.common.base.Function<Result<TimeseriesResultValue>,Result<TimeseriesResultValue>> makePostComputeManipulatorFn(TimeseriesQuery query, MetricManipulationFn fn)
QueryToolChest
makePostComputeManipulatorFn
in class QueryToolChest<Result<TimeseriesResultValue>,TimeseriesQuery>
query
- The Query that is currently being processedfn
- The function that should be applied to all metrics in the resultsCopyright © 2011–2015. All rights reserved.