Class DateRangeFunc
java.lang.Object
io.nosqlbench.datamappers.functions.to_daterange.DateRangeFunc
- All Implemented Interfaces:
LongFunction<com.datastax.dse.driver.api.core.data.time.DateRange>
public class DateRangeFunc
extends Object
implements LongFunction<com.datastax.dse.driver.api.core.data.time.DateRange>
Uses the precision and the two functions provided to create a DateRange.
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 Summary
ConstructorsConstructorDescriptionDateRangeFunc(String precision, Object lowerFunc, Object upperFunc) DateRangeFunc(String precision, Object lowerFunc, Object upperFunc, String zoneid) -
Method Summary
Modifier and TypeMethodDescriptioncom.datastax.dse.driver.api.core.data.time.DateRangeapply(long value)
-
Constructor Details
-
DateRangeFunc
-
DateRangeFunc
-
-
Method Details
-
apply
public com.datastax.dse.driver.api.core.data.time.DateRange apply(long value) - Specified by:
applyin interfaceLongFunction<com.datastax.dse.driver.api.core.data.time.DateRange>
-