pub enum Chunk {
Hour,
Day,
Month,
}Expand description
Time partition granularity: how much time one partition covers.
Parses from hour, day or month (and spellings such as 1h, 1 day).
Variants§
Hour
One partition per hour.
Day
One partition per day (the default).
Month
One partition per calendar month.
Implementations§
Source§impl Chunk
impl Chunk
Sourcepub fn value(self, micros: i64) -> Result<i32>
pub fn value(self, micros: i64) -> Result<i32>
Iceberg transform value (hours/days/months since the epoch) of a timestamp in microseconds.
Sourcepub fn start_micros(self, value: i32) -> Result<i64>
pub fn start_micros(self, value: i32) -> Result<i64>
Start of a partition, in microseconds since the epoch.
Sourcepub fn end_micros(self, value: i32) -> Result<i64>
pub fn end_micros(self, value: i32) -> Result<i64>
End (exclusive) of a partition, in microseconds since the epoch.
Trait Implementations§
impl Copy for Chunk
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more