Class TimeBucketFunctions.DoubleTimeBucketFunction

java.lang.Object
org.apache.drill.exec.udfs.TimeBucketFunctions.DoubleTimeBucketFunction
All Implemented Interfaces:
DrillFunc, DrillSimpleFunc
Enclosing class:
TimeBucketFunctions

public static class TimeBucketFunctions.DoubleTimeBucketFunction extends Object implements DrillSimpleFunc
This function is used for facilitating time series analysis by creating buckets of time intervals. See https://blog.timescale.com/blog/simplified-time-series-analytics-using-the-time_bucket-function/ for usage. The function takes two arguments: 1. The timestamp (as a Drill timestamp) 2. The desired bucket interval IN milliseconds The function returns a BIGINT of the nearest time bucket.
  • Constructor Details

    • DoubleTimeBucketFunction

      public DoubleTimeBucketFunction()
  • Method Details