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

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

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

origin: apache/incubator-druid

@Override
public DateTime toDate(String filePath, Formatter formatter)
{
 Integer[] vals = getDateValues(filePath, formatter);
 GranularityType granularityType = GranularityType.fromPeriod(period);
 DateTime date = granularityType.getDateTime(vals);
 if (date != null) {
  return bucketStart(date);
 }
 return null;
}
origin: org.apache.druid/java-util

@Override
public DateTime toDate(String filePath, Formatter formatter)
{
 Integer[] vals = getDateValues(filePath, formatter);
 GranularityType granularityType = GranularityType.fromPeriod(period);
 DateTime date = granularityType.getDateTime(vals);
 if (date != null) {
  return bucketStart(date);
 }
 return null;
}
org.apache.druid.java.util.common.granularityGranularityTypegetDateTime

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

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot 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