Class TimePartitionRotation
java.lang.Object
io.deephaven.enterprise.kafkawriter.TimePartitionRotation
Create functions for generating column partitions from an epoch timestamp.
- 
Method SummaryModifier 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- 
dailyReturn 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
 
- 
hourlyReturn 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
 
- 
dailyReturn a function suitable for creating a daily column partition from nanoseconds since the epoch.- Parameters:
- zoneId- the timeZone for conversion
- slackHours- 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
 
- 
hourlyReturn a function suitable for creating an hourly column partition from nanoseconds since the epoch.- Parameters:
- zoneId- the timeZone for conversion
- slackHours- 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
 
 
-