use std::collections::HashMap;
use typed_builder::TypedBuilder;
pub const APACHE_DATASKETCHES_THETA_V1: &str = "apache-datasketches-theta-v1";
pub const DELETION_VECTOR_V1: &str = "deletion-vector-v1";
#[derive(Debug, PartialEq, Clone, TypedBuilder)]
pub struct Blob {
pub(crate) r#type: String,
pub(crate) fields: Vec<i32>,
pub(crate) snapshot_id: i64,
pub(crate) sequence_number: i64,
pub(crate) data: Vec<u8>,
pub(crate) properties: HashMap<String, String>,
}
impl Blob {
#[inline]
pub fn blob_type(&self) -> &str {
&self.r#type
}
#[inline]
pub fn fields(&self) -> &[i32] {
&self.fields
}
#[inline]
pub fn snapshot_id(&self) -> i64 {
self.snapshot_id
}
#[inline]
pub fn sequence_number(&self) -> i64 {
self.sequence_number
}
#[inline]
pub fn data(&self) -> &[u8] {
&self.data
}
#[inline]
pub fn properties(&self) -> &HashMap<String, String> {
&self.properties
}
}