use arrow_schema::DataType;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ArrowFieldRef {
index: usize,
name: String,
nullable: bool,
data_type: DataType,
}
impl ArrowFieldRef {
pub const fn new(index: usize, name: String, nullable: bool, data_type: DataType) -> Self {
Self {
index,
name,
nullable,
data_type,
}
}
pub const fn index(&self) -> usize {
self.index
}
pub fn name(&self) -> &str {
&self.name
}
pub const fn nullable(&self) -> bool {
self.nullable
}
pub const fn data_type(&self) -> &DataType {
&self.data_type
}
}