Class DateRangeParser

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

public class DateRangeParser extends Object implements Function<String,com.datastax.dse.driver.api.core.data.time.DateRange>
Parses the DateRange format according to Date Range Formatting. When possible it is more efficient to use the other DateRange methods since they do not require parsing.
  • Constructor Details

    • DateRangeParser

      public DateRangeParser(String precision)
  • Method Details

    • apply

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