pub enum RotationConfig {
Size {
max_size: u64,
},
Interval {
interval_ns: u64,
},
ScheduledDates {
interval_ns: u64,
rotation_time: UnixNanos,
rotation_timezone: TimeZone,
},
NoRotation,
}Expand description
Configuration for file rotation.
Time rotations are decided by the rows’ ts_init, not the wall clock, and no rotation splits
rows of one ts_init over two files (FeatherWriter::rotated_for): the catalog requires the
promoted files’ ts_init ranges to be disjoint.
That guarantee holds only while a staged type’s ts_init does not decrease across its
identifiers. A rotation compares a row with the open file alone, so a late row at or before a
sealed file’s last ts_init lands in a later file, which can then overlap the sealed file’s
range and fail promotion.
Variants§
Size
Rotate based on file size, before the next row with a later ts_init.
Interval
Rotate before the first row whose ts_init is an interval past the file’s first row.
ScheduledDates
Rotate before the first row whose ts_init is at or after a scheduled time of day.
Fields
rotation_time: UnixNanosTime of day for rotation (nanoseconds since midnight).
rotation_timezone: TimeZoneTimezone for rotation calculations.
NoRotation
No automatic rotation.
Trait Implementations§
Source§impl Clone for RotationConfig
impl Clone for RotationConfig
Auto Trait Implementations§
impl Freeze for RotationConfig
impl RefUnwindSafe for RotationConfig
impl Send for RotationConfig
impl Sync for RotationConfig
impl Unpin for RotationConfig
impl UnsafeUnpin for RotationConfig
impl UnwindSafe for RotationConfig
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more