pub enum SortBehaviour {
None,
RequestKeys,
Ordered,
}Expand description
Controls how a parallel reader surfaces and orders the per-table sequence keys carried on each record batch by the ordered parallel writers.
Variants§
None
Do not surface sequence keys. Every item’s key is None and tables
arrive in the order the streams produce them, at no ordering cost.
RequestKeys
Surface each table’s sequence key without reordering. Tables arrive in stream-production order. The caller sorts on the keys to recover global write order across streams.
Ordered
Emit tables in global write order across streams. The reader pulls the
streams in the writer’s round-robin rotation, so each table surfaces in
ascending sequence on the streaming interface and in
read_all_tables. A lagging
stream holds back the tables behind it, the bound on per-stream
buffering inherent to any ordered merge.
Trait Implementations§
Source§impl Clone for SortBehaviour
impl Clone for SortBehaviour
Source§fn clone(&self) -> SortBehaviour
fn clone(&self) -> SortBehaviour
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more