congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SelectQueryQueryToolChest
Code IndexAdd Tabnine to your IDE (free)

How to use
SelectQueryQueryToolChest
in
org.apache.druid.query.select

Best Java code snippets using org.apache.druid.query.select.SelectQueryQueryToolChest (Showing top 8 results out of 315)

origin: apache/incubator-druid

new SelectQueryQueryToolChest(
  JSON_MAPPER,
  QueryBenchmarkUtil.NoopIntervalChunkingQueryRunnerDecorator(),
origin: apache/incubator-druid

.postMergeQueryDecoration(toolChest.mergeResults(toolChest.preMergeQueryDecoration(runner)))
.run(QueryPlus.wrap(query), new HashMap<>())
.toList();
origin: apache/incubator-druid

 @Test
 public void testComputeCacheKeyWithDifferentSortOrer()
 {
  final SelectQuery query1 = Druids.newSelectQueryBuilder()
                   .dataSource("dummy")
                   .dimensions(Collections.singletonList("testDim"))
                   .intervals(SelectQueryRunnerTest.I_0112_0114_SPEC)
                   .granularity(QueryRunnerTestHelper.allGran)
                   .pagingSpec(PagingSpec.newSpec(3))
                   .descending(false)
                   .build();

  final SelectQuery query2 = Druids.newSelectQueryBuilder()
                   .dataSource("dummy")
                   .dimensions(Collections.singletonList("testDim"))
                   .intervals(SelectQueryRunnerTest.I_0112_0114_SPEC)
                   .granularity(QueryRunnerTestHelper.allGran)
                   .pagingSpec(PagingSpec.newSpec(3))
                   .descending(true)
                   .build();

  final CacheStrategy<Result<SelectResultValue>, Object, SelectQuery> strategy1 = toolChest.getCacheStrategy(query1);
  Assert.assertNotNull(strategy1);
  final CacheStrategy<Result<SelectResultValue>, Object, SelectQuery> strategy2 = toolChest.getCacheStrategy(query2);
  Assert.assertNotNull(strategy2);

  Assert.assertFalse(Arrays.equals(strategy1.computeCacheKey(query1), strategy2.computeCacheKey(query2)));
 }
}
origin: apache/incubator-druid

new SelectQueryQueryToolChest(
  objectMapper,
  QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator(),
origin: apache/incubator-druid

new SelectQueryQueryToolChest(
  JSON_MAPPER,
  QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator(),
origin: apache/incubator-druid

new SelectQueryQueryToolChest(
  JSON_MAPPER,
  QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator(),
origin: apache/incubator-druid

SelectQueryQueryToolChest toolchest = new SelectQueryQueryToolChest(
  TestHelper.makeJsonMapper(),
  QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator(),
  new SelectQueryQueryToolChest(
    TestHelper.makeJsonMapper(),
    QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator(),
origin: apache/incubator-druid

SelectQuery.class,
new SelectQueryRunnerFactory(
  new SelectQueryQueryToolChest(
    TestHelper.makeJsonMapper(),
    QueryRunnerTestHelper.NoopIntervalChunkingQueryRunnerDecorator(),
org.apache.druid.query.selectSelectQueryQueryToolChest

Most used methods

  • <init>
  • getCacheStrategy
  • mergeResults
  • postMergeQueryDecoration
  • preMergeQueryDecoration

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now