MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / transformRollupQueryToDownSampler

Method transformRollupQueryToDownSampler

src/core/TsdbQuery.java:1773–1784  ·  view source on GitHub ↗

Transform rollup query to downsampler It is mainly useful when it scan on raw data on fallback. @since 2.4

()

Source from the content-addressed store, hash-verified

1771 * @since 2.4
1772 */
1773 private void transformRollupQueryToDownSampler() {
1774
1775 if (rollup_query != null) {
1776 // TODO - clean up and handle fill
1777 downsampler = new DownsamplingSpecification(
1778 rollup_query.getRollupInterval().getIntervalSeconds() * 1000,
1779 rollup_query.getRollupAgg(),
1780 (downsampler != null ? downsampler.getFillPolicy() :
1781 FillPolicy.ZERO));
1782 rollup_query = null;
1783 }
1784 }
1785
1786 @Override
1787 public String toString() {

Callers 1

callMethod · 0.80

Calls 4

getIntervalSecondsMethod · 0.80
getRollupAggMethod · 0.80
getFillPolicyMethod · 0.65
getRollupIntervalMethod · 0.45

Tested by

no test coverage detected