congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GranularityType.getHiveFormat
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.druid.java.util.common.granularity.GranularityType.getHiveFormat (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.granularityGranularityTypegetHiveFormat

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
  • getDefaultFormat
  • 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

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top PhpStorm 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