public static TimeseriesQueryRunnerFactory newTimeseriesQueryRunnerFactory() { return new TimeseriesQueryRunnerFactory( new TimeseriesQueryQueryToolChest(NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER ); }
QueryBenchmarkUtil.NoopIntervalChunkingQueryRunnerDecorator() ), new TimeseriesQueryEngine(), QueryBenchmarkUtil.NOOP_QUERYWATCHER );
@Parameterized.Parameters(name = "{0}:descending={1}") public static Iterable<Object[]> constructorFeeder() { return QueryRunnerTestHelper.cartesian( QueryRunnerTestHelper.makeUnionQueryRunners( new TimeseriesQueryRunnerFactory( new TimeseriesQueryQueryToolChest(QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER ) ), // descending? Arrays.asList(false, true) ); }
public static <T> QueryRunner<T> makeTimeSeriesQueryRunner(Segment adapter) { QueryRunnerFactory factory = new TimeseriesQueryRunnerFactory( new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER ); return new FinalizeResultsQueryRunner<T>( factory.createRunner(adapter), factory.getToolchest() ); }
@Parameterized.Parameters(name = "{0}:descending={1}") public static Iterable<Object[]> constructorFeeder() { return QueryRunnerTestHelper.cartesian( // runners QueryRunnerTestHelper.makeQueryRunners( new TimeseriesQueryRunnerFactory( new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator() ), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER ) ), // descending? Arrays.asList(false, true), Arrays.asList(QueryRunnerTestHelper.commonDoubleAggregators, QueryRunnerTestHelper.commonFloatAggregators) ); }
QueryBenchmarkUtil.NoopIntervalChunkingQueryRunnerDecorator() ), new TimeseriesQueryEngine(), QueryBenchmarkUtil.NOOP_QUERYWATCHER );
new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
timeseriesFactory = new TimeseriesQueryRunnerFactory( new TimeseriesQueryQueryToolChest(QueryBenchmarkUtil.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryBenchmarkUtil.NOOP_QUERYWATCHER );
QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator() ), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
private List<Result<TimeseriesResultValue>> runTimeseriesCount(IncrementalIndex index) { final QueryRunnerFactory factory = new TimeseriesQueryRunnerFactory( new TimeseriesQueryQueryToolChest(QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER ); final QueryRunner<Result<TimeseriesResultValue>> runner = makeQueryRunner( factory, new IncrementalIndexSegment(index, SegmentId.dummy("ds")) ); TimeseriesQuery query = Druids.newTimeseriesQueryBuilder() .dataSource("xxx") .granularity(Granularities.ALL) .intervals(ImmutableList.of(Intervals.of("2012-01-01T00:00:00Z/P1D"))) .aggregators(new CountAggregatorFactory("rows")) .descending(descending) .build(); HashMap<String, Object> context = new HashMap<String, Object>(); return runner.run(QueryPlus.wrap(query), context).toList(); }
new TimeseriesQueryQueryToolChest( QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator()), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator() ), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator() ), new TimeseriesQueryEngine(), QueryRunnerTestHelper.NOOP_QUERYWATCHER );
@Test public void testTopNWithDistinctCountAgg() throws Exception TimeseriesQueryEngine engine = new TimeseriesQueryEngine();
@Test public void testTopNWithDistinctCountAgg() throws Exception TimeseriesQueryEngine engine = new TimeseriesQueryEngine();