public class SegmentMetadataQueryQueryToolChest extends QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
Constructor and Description |
---|
SegmentMetadataQueryQueryToolChest() |
Modifier and Type | Method and Description |
---|---|
CacheStrategy<SegmentAnalysis,SegmentAnalysis,SegmentMetadataQuery> |
getCacheStrategy(SegmentMetadataQuery query)
Returns a CacheStrategy to be used to load data into the cache and remove it from the cache.
|
com.fasterxml.jackson.core.type.TypeReference<SegmentAnalysis> |
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(SegmentMetadataQuery query)
Creates a builder that is used to generate a metric for this specific query type.
|
com.google.common.base.Function<SegmentAnalysis,SegmentAnalysis> |
makePreComputeManipulatorFn(SegmentMetadataQuery 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<SegmentAnalysis> |
mergeResults(QueryRunner<SegmentAnalysis> runner)
This method wraps a QueryRunner.
|
com.metamx.common.guava.Sequence<SegmentAnalysis> |
mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<SegmentAnalysis>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
com.metamx.common.guava.Sequence<SegmentAnalysis> |
mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<SegmentAnalysis>> seqOfSequences)
This method doesn't belong here, but it's here for now just to make it work.
|
filterSegments, makePostComputeManipulatorFn, postMergeQueryDecoration, preMergeQueryDecoration
public QueryRunner<SegmentAnalysis> mergeResults(QueryRunner<SegmentAnalysis> runner)
QueryToolChest
mergeResults
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
runner
- A QueryRunner that provides a series of ResultType objects in time order (ascending)public com.metamx.common.guava.Sequence<SegmentAnalysis> mergeSequences(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<SegmentAnalysis>> seqOfSequences)
QueryToolChest
mergeSequences
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
seqOfSequences
- sequence of sequences to be mergedpublic com.metamx.common.guava.Sequence<SegmentAnalysis> mergeSequencesUnordered(com.metamx.common.guava.Sequence<com.metamx.common.guava.Sequence<SegmentAnalysis>> seqOfSequences)
QueryToolChest
mergeSequencesUnordered
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
seqOfSequences
- sequence of sequences to be mergedpublic com.metamx.emitter.service.ServiceMetricEvent.Builder makeMetricBuilder(SegmentMetadataQuery query)
QueryToolChest
makeMetricBuilder
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
query
- The query that is being processedpublic com.google.common.base.Function<SegmentAnalysis,SegmentAnalysis> makePreComputeManipulatorFn(SegmentMetadataQuery query, MetricManipulationFn fn)
QueryToolChest
makePreComputeManipulatorFn
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
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<SegmentAnalysis> getResultTypeReference()
QueryToolChest
getResultTypeReference
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
public CacheStrategy<SegmentAnalysis,SegmentAnalysis,SegmentMetadataQuery> getCacheStrategy(SegmentMetadataQuery query)
QueryToolChest
getCacheStrategy
in class QueryToolChest<SegmentAnalysis,SegmentMetadataQuery>
query
- The query whose results might be cachedCopyright © 2011–2015. All rights reserved.