Skip to main content

s2_common/
caps.rs

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