pub struct QueueIndexConfig {
pub base: TableIndexConfig,
pub priority_column: Option<String>,
pub timestamp_column: Option<String>,
pub fifo_column: Option<String>,
pub enable_min_key_cache: bool,
pub enable_size_tracking: bool,
}Expand description
Configuration for queue tables
Fields§
§base: TableIndexConfigBase table configuration
priority_column: Option<String>Name of the priority column (for composite key ordering)
timestamp_column: Option<String>Name of the timestamp column (for ready-time ordering)
fifo_column: Option<String>Name of the sequence column (for FIFO within same priority)
enable_min_key_cache: boolWhether to maintain min-key cache for O(1) peek
enable_size_tracking: boolWhether to track queue size for O(1) count
Implementations§
Source§impl QueueIndexConfig
impl QueueIndexConfig
Sourcepub fn with_priority_column(self, column: impl Into<String>) -> Self
pub fn with_priority_column(self, column: impl Into<String>) -> Self
Set the priority column name
Sourcepub fn with_timestamp_column(self, column: impl Into<String>) -> Self
pub fn with_timestamp_column(self, column: impl Into<String>) -> Self
Set the timestamp column name
Sourcepub fn with_fifo_column(self, column: impl Into<String>) -> Self
pub fn with_fifo_column(self, column: impl Into<String>) -> Self
Set the FIFO sequence column name
Sourcepub fn with_min_key_cache(self, enable: bool) -> Self
pub fn with_min_key_cache(self, enable: bool) -> Self
Enable or disable min-key cache
Sourcepub fn with_size_tracking(self, enable: bool) -> Self
pub fn with_size_tracking(self, enable: bool) -> Self
Enable or disable size tracking
Sourcepub fn key_columns(&self) -> Vec<&str>
pub fn key_columns(&self) -> Vec<&str>
Get the composite key columns for this queue
Trait Implementations§
Source§impl Clone for QueueIndexConfig
impl Clone for QueueIndexConfig
Source§fn clone(&self) -> QueueIndexConfig
fn clone(&self) -> QueueIndexConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueueIndexConfig
impl RefUnwindSafe for QueueIndexConfig
impl Send for QueueIndexConfig
impl Sync for QueueIndexConfig
impl Unpin for QueueIndexConfig
impl UnsafeUnpin for QueueIndexConfig
impl UnwindSafe for QueueIndexConfig
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
Mutably borrows from an owned value. Read more
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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