Tabnine Logo
DruidQuery.getQueryType
Code IndexAdd Tabnine to your IDE (free)

How to use
getQueryType
method
in
com.yahoo.bard.webservice.druid.model.query.DruidQuery

Best Java code snippets using com.yahoo.bard.webservice.druid.model.query.DruidQuery.getQueryType (Showing top 4 results out of 315)

origin: yahoo/fili

/**
 * Determines whether or not a query is able to be processed using
 * the Sql backend.
 *
 * @param druidQuery  The query to check if is able to be processed.
 *
 * @return true if a valid query, else false.
 */
protected boolean isValidQuery(DruidQuery<?> druidQuery) {
  QueryType queryType = druidQuery.getQueryType();
  LOG.debug("Processing {} query\n {}", queryType, druidQuery);
  if (queryType instanceof DefaultQueryType) {
    DefaultQueryType defaultQueryType = (DefaultQueryType) queryType;
    switch (defaultQueryType) {
      case TIMESERIES:
      case GROUP_BY:
        return true;
    }
  }
  return false;
}
origin: yahoo/fili

REGISTRY.meter("request.logical.table." + table.getName() + "." + table.getGranularity()).mark();
RequestLog.record(new BardQueryInfo(druidQuery.getQueryType().toJson()));
RequestLog.record(
    new DataRequest(
origin: yahoo/fili

if (lastQuery.getQueryType() instanceof DefaultQueryType) {
  DefaultQueryType defaultQueryType = (DefaultQueryType) lastQuery.getQueryType();
  switch (defaultQueryType) {
    case GROUP_BY:
      break;
    default:
      throw new IllegalArgumentException("Illegal query type : " + lastQuery.getQueryType());
origin: com.yahoo.fili/fili-core

if (lastQuery.getQueryType() instanceof DefaultQueryType) {
  DefaultQueryType defaultQueryType = (DefaultQueryType) lastQuery.getQueryType();
  switch (defaultQueryType) {
    case GROUP_BY:
      break;
    default:
      throw new IllegalArgumentException("Illegal query type : " + lastQuery.getQueryType());
com.yahoo.bard.webservice.druid.model.queryDruidQuerygetQueryType

Javadoc

Returns the type of the query.

Popular methods of DruidQuery

  • getContext
    Returns the context of the query. If the context is uninitialized it returns an initialized empty co
  • getDataSource
    Returns the data source of the query.
  • getInnerQuery
    If this query is nestable, and has a nested query return it.
  • getInnermostQuery
    If this structure is part of a query stack, return the lowest element.

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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