#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum SortPlan {
InMemory,
External {
run_buffer_bytes: usize,
max_fan_in: u32,
},
}
impl SortPlan {
#[must_use]
pub fn is_external(&self) -> bool {
matches!(self, SortPlan::External { .. })
}
#[must_use]
pub fn is_in_memory(&self) -> bool {
matches!(self, SortPlan::InMemory)
}
}