Enum iceberg_rust::model::values::Value
source · pub enum Value {
Show 17 variants
Boolean(bool),
Int(i32),
LongInt(i64),
Float(f32),
Double(f64),
Date(i32),
Time(i64),
Timestamp(i64),
TimestampTZ(i64),
String(String),
UUID(i128),
Fixed(usize, Vec<u8>),
Binary(Vec<u8>),
Decimal(Decimal),
Struct(Struct),
List(Vec<Option<Value>>),
Map(HashMap<String, Option<Value>>),
}
Expand description
Values present in iceberg type
Variants§
Boolean(bool)
0x00 for false, non-zero byte for true
Int(i32)
Stored as 4-byte little-endian
LongInt(i64)
Stored as 8-byte little-endian
Float(f32)
Stored as 4-byte little-endian
Double(f64)
Stored as 8-byte little-endian
Date(i32)
Stores days from the 1970-01-01 in an 4-byte little-endian int
Time(i64)
Stores microseconds from midnight in an 8-byte little-endian long
Timestamp(i64)
Stores microseconds from 1970-01-01 00:00:00.000000 in an 8-byte little-endian long
TimestampTZ(i64)
Stores microseconds from 1970-01-01 00:00:00.000000 in an 8-byte little-endian long
String(String)
UTF-8 bytes (without length)
UUID(i128)
16-byte big-endian value
Fixed(usize, Vec<u8>)
Binary value
Binary(Vec<u8>)
Binary value (without length)
Decimal(Decimal)
Stores unscaled value as two’s-complement big-endian binary, using the minimum number of bytes for the value
Struct(Struct)
A struct is a tuple of typed values. Each field in the tuple is named and has an integer id that is unique in the table schema. Each field can be either optional or required, meaning that values can (or cannot) be null. Fields may be any type. Fields may have an optional comment or doc string. Fields can have default values.
List(Vec<Option<Value>>)
A list is a collection of values with some element type. The element field has an integer id that is unique in the table schema. Elements can be either optional or required. Element types may be any type.
Map(HashMap<String, Option<Value>>)
A map is a collection of key-value pairs with a key type and a value type. Both the key field and value field each have an integer id that is unique in the table schema. Map keys are required and map values can be either optional or required. Both map keys and map values may be any type, including nested types.