Tabnine Logo
GranularityType.getDefaultFormat
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultFormat
method
in
org.apache.druid.java.util.common.granularity.GranularityType

Best Java code snippets using org.apache.druid.java.util.common.granularity.GranularityType.getDefaultFormat (Showing top 4 results out of 315)

origin: apache/incubator-druid

GranularityType(GranularityType granularityType, String period)
{
 this(
   granularityType.getHiveFormat(),
   granularityType.getLowerDefaultFormat(),
   granularityType.getDefaultFormat(),
   granularityType.dateValuePositions,
   period
 );
}
origin: apache/incubator-druid

@Override
public DateTimeFormatter getFormatter(Formatter type)
{
 GranularityType granularityType = GranularityType.fromPeriod(period);
 switch (type) {
  case DEFAULT:
   return DateTimeFormat.forPattern(granularityType.getDefaultFormat());
  case HIVE:
   return DateTimeFormat.forPattern(granularityType.getHiveFormat());
  case LOWER_DEFAULT:
   return DateTimeFormat.forPattern(granularityType.getLowerDefaultFormat());
  default:
   throw new IAE("There is no format for type %s", type);
 }
}
origin: org.apache.druid/java-util

GranularityType(GranularityType granularityType, String period)
{
 this(
   granularityType.getHiveFormat(),
   granularityType.getLowerDefaultFormat(),
   granularityType.getDefaultFormat(),
   granularityType.dateValuePositions,
   period
 );
}
origin: org.apache.druid/java-util

@Override
public DateTimeFormatter getFormatter(Formatter type)
{
 GranularityType granularityType = GranularityType.fromPeriod(period);
 switch (type) {
  case DEFAULT:
   return DateTimeFormat.forPattern(granularityType.getDefaultFormat());
  case HIVE:
   return DateTimeFormat.forPattern(granularityType.getHiveFormat());
  case LOWER_DEFAULT:
   return DateTimeFormat.forPattern(granularityType.getLowerDefaultFormat());
  default:
   throw new IAE("There is no format for type %s", type);
 }
}
org.apache.druid.java.util.common.granularityGranularityTypegetDefaultFormat

Popular methods of GranularityType

  • fromPeriod
    Note: This is only an estimate based on the values in period. This will not work for complicated per
  • getDefaultGranularity
  • values
  • create
  • getDateTime
  • getHiveFormat
  • getLowerDefaultFormat
  • isStandard
    For a select subset of granularites, users can specify them directly as string. These are "predefine
  • toString
  • valueOf
  • name
  • name

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JButton (javax.swing)
  • JList (javax.swing)
  • Option (scala)
  • CodeWhisperer alternatives
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