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)
QueryToolChest
mergeResults
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)
QueryToolChest
mergeSequences
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)
QueryToolChest
mergeSequencesUnordered
in class QueryToolChest<Result<SelectResultValue>,SelectQuery>
seqOfSequences
- sequence of sequences to be mergedpublic com.metamx.emitter.service.ServiceMetricEvent.Builder makeMetricBuilder(SelectQuery query)
QueryToolChest
makeMetricBuilder
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)
QueryToolChest
makePreComputeManipulatorFn
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()
QueryToolChest
getResultTypeReference
in class QueryToolChest<Result<SelectResultValue>,SelectQuery>
public CacheStrategy<Result<SelectResultValue>,Object,SelectQuery> getCacheStrategy(SelectQuery query)
QueryToolChest
getCacheStrategy
in class QueryToolChest<Result<SelectResultValue>,SelectQuery>
query
- The query whose results might be cachedpublic QueryRunner<Result<SelectResultValue>> preMergeQueryDecoration(QueryRunner<Result<SelectResultValue>> runner)
QueryToolChest
preMergeQueryDecoration
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.