nodedb_columnar/memtable/ingest_value.rs
1// SPDX-License-Identifier: Apache-2.0
2
3//! Borrowed value type for zero-copy memtable ingest.
4
5/// Borrowed value for zero-copy ingest into the columnar memtable.
6#[derive(Debug, Clone, Copy)]
7#[non_exhaustive]
8pub enum IngestValue<'a> {
9 Null,
10 Int64(i64),
11 Float64(f64),
12 Bool(bool),
13 Timestamp(i64),
14 /// Borrowed string — for `String` or `DictEncoded` columns.
15 Str(&'a str),
16}