s2_common/
caps.rs

1pub const MIN_BASIN_NAME_LEN: usize = 8;
2pub const MAX_BASIN_NAME_LEN: usize = 48;
3
4pub const MIN_STREAM_NAME_LEN: usize = 1;
5pub const MAX_STREAM_NAME_LEN: usize = 512;
6
7pub const MAX_ACCESS_TOKEN_ID_LEN: usize = 96;
8
9/// All record batches in the system are limited to 1000 records.
10/// Batches are limited to a collective size of 1 MiB, which is also the maximum size of a single
11/// record.
12pub const RECORD_BATCH_MAX: crate::read_extent::CountOrBytes = crate::read_extent::CountOrBytes {
13    count: 1000,
14    bytes: 1024 * 1024,
15};