use arrow::error::ArrowError;
use super::{
upath::UPath,
row4::Row4,
};
const HEADER_ROW: &str = ".";
#[derive(Clone, Debug)]
pub struct Table {
records: Vec<Row4>,
path3: Option<UPath>,
path4: Option<UPath>,
}
impl Table {
pub fn to_string(&self) -> String {
format!("Table({})", self.path4.as_ref().unwrap().to_string()) +
&format!("({:?})\n", self.path3) +
&format!("[\n{:?}\n]", self.records)
}
pub fn read3(&self) -> Result<Self, ArrowError> {
unimplemented!()
}
pub fn write3(&self) -> Result<(), ArrowError> {
unimplemented!()
}
pub fn read4(&self) -> Result<Self, ArrowError> {
unimplemented!()
}
pub fn write4(&self) -> Result<(), ArrowError> {
unimplemented!()
}
pub fn get_row(&self, _name: &String) -> Option<Row4> {
unimplemented!()
}
pub fn get_header(&self) -> Option<Row4> {
self.get_row(&HEADER_ROW.to_string())
}
pub fn list_rows(&self) -> Vec<Row4> {
unimplemented!()
}
}