Transform rollup query to downsampler It is mainly useful when it scan on raw data on fallback. @since 2.4
()
| 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() { |
no test coverage detected