Class DateRangeOnOrAfter

java.lang.Object
io.nosqlbench.datamappers.functions.to_daterange.DateRangeOnOrAfter
All Implemented Interfaces:
LongFunction<com.datastax.dse.driver.api.core.data.time.DateRange>

public class DateRangeOnOrAfter extends Object implements LongFunction<com.datastax.dse.driver.api.core.data.time.DateRange>
Takes an input as a reference point in epoch time, and converts it to a DateRange, with the lower bounds set to the lower bound of the precision and millisecond provided, and with no upper bound. You can use any of these precisions to control the bounds around the provided timestamp: millisecond, second, minute, hour, day, month, or year. If the zoneid is not specified, it defaults to "GMT". If the zoneid is set to "default", then the zoneid is set to the default for the JVM. Otherwise, the specified zone is used.
  • Constructor Details

    • DateRangeOnOrAfter

      public DateRangeOnOrAfter(String precision, String zoneid)
    • DateRangeOnOrAfter

      public DateRangeOnOrAfter(String precision)
  • Method Details

    • apply

      public com.datastax.dse.driver.api.core.data.time.DateRange apply(long value)
      Specified by:
      apply in interface LongFunction<com.datastax.dse.driver.api.core.data.time.DateRange>