Class DataLookupUtils
- java.lang.Object
-
- cern.nxcals.api.custom.domain.util.DataLookupUtils
-
public final class DataLookupUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<java.time.Instant>
getAdjacentTimestampAfter(@NonNull java.time.Instant timestamp, @NonNull java.util.function.Function<TimeWindow,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> dataProvider, @NonNull java.lang.String timestampField, @NonNull java.time.Duration lookupDuration)
static java.util.Optional<java.time.Instant>
getAdjacentTimestampBefore(@NonNull java.time.Instant timestamp, @NonNull java.util.function.Function<TimeWindow,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> dataProvider, @NonNull java.lang.String timestampField, @NonNull java.time.Duration lookupDuration)
-
-
-
Method Detail
-
getAdjacentTimestampBefore
public static java.util.Optional<java.time.Instant> getAdjacentTimestampBefore(@NonNull @NonNull java.time.Instant timestamp, @NonNull @NonNull java.util.function.Function<TimeWindow,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> dataProvider, @NonNull @NonNull java.lang.String timestampField, @NonNull @NonNull java.time.Duration lookupDuration)
-
getAdjacentTimestampAfter
public static java.util.Optional<java.time.Instant> getAdjacentTimestampAfter(@NonNull @NonNull java.time.Instant timestamp, @NonNull @NonNull java.util.function.Function<TimeWindow,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> dataProvider, @NonNull @NonNull java.lang.String timestampField, @NonNull @NonNull java.time.Duration lookupDuration)
-
-