Class TimePartitionRotation
java.lang.Object
io.deephaven.enterprise.kafkawriter.TimePartitionRotation
Create functions for generating column partitions from an epoch timestamp.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LongFunction<String>
daily()
Return a function suitable for creating a daily column partition from nanoseconds since the epoch.static LongFunction<String>
Return a function suitable for creating a daily column partition from nanoseconds since the epoch.static LongFunction<String>
hourly()
Return a function suitable for creating an hourly column partition from nanoseconds since the epoch.static LongFunction<String>
Return a function suitable for creating an hourly column partition from nanoseconds since the epoch.
-
Method Details
-
daily
Return a function suitable for creating a daily column partition from nanoseconds since the epoch.The default system time zone is used. Times that are more than 30 days in the past or into the future are considered invalid.
- Returns:
- a function that converts a timestamp to a daily column partition
-
hourly
Return a function suitable for creating an hourly column partition from nanoseconds since the epoch.The default system time zone is used. Times that are more than 30 days in the past or into the future are considered invalid.
- Returns:
- a function that converts a timestamp to an hourly column partition
-
daily
Return a function suitable for creating a daily column partition from nanoseconds since the epoch.- Parameters:
zoneId
- the timeZone for conversionslackHours
- if a time is more than this many hours away from "now", then consider it to be invalid data- Returns:
- a function that converts a timestamp to a daily column partition
-
hourly
Return a function suitable for creating an hourly column partition from nanoseconds since the epoch.- Parameters:
zoneId
- the timeZone for conversionslackHours
- if a time is more than this many hours away from "now", then consider it to be invalid data- Returns:
- a function that converts a timestamp to an hourly column partition
-