pancake_db_client/types.rs
1use std::collections::HashMap;
2
3use pancake_db_idl::dml::PartitionFieldValue;
4
5/// A fully-specified segment.
6///
7/// Consists of a table name, partition, and segment ID.
8/// Used in certain high-level client functionality.
9#[derive(Clone, Debug, Default, PartialEq)]
10pub struct SegmentKey {
11 pub table_name: String,
12 pub partition: HashMap<String, PartitionFieldValue>,
13 pub segment_id: String,
14}