reifydb_sub_flow/transaction/
allocators.rs1use reifydb_transaction::dictionary::DictionaryAllocatorRegistry;
5
6use crate::transaction::row_allocator::RowAllocatorRegistry;
7
8#[derive(Clone, Default)]
9pub struct FlowAllocators {
10 pub row: RowAllocatorRegistry,
11 pub dictionary: DictionaryAllocatorRegistry,
12}
13
14impl FlowAllocators {
15 pub fn new() -> Self {
16 Self::default()
17 }
18
19 pub fn with_dictionary(dictionary: DictionaryAllocatorRegistry) -> Self {
20 Self {
21 row: RowAllocatorRegistry::new(),
22 dictionary,
23 }
24 }
25}