mod column_chunk;
mod compression;
mod file;
mod indexes;
pub(crate) mod page;
mod row_group;
pub(self) mod statistics;
#[cfg(feature = "async")]
mod stream;
#[cfg(feature = "async")]
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
pub use stream::FileStreamer;
mod dyn_iter;
pub use dyn_iter::{DynIter, DynStreamingIterator};
pub use compression::{compress, Compressor};
pub use file::{write_metadata_sidecar, FileWriter};
pub use row_group::ColumnOffsetsMetadata;
use crate::page::CompressedPage;
pub type RowGroupIter<'a, E> =
DynIter<'a, std::result::Result<DynStreamingIterator<'a, CompressedPage, E>, E>>;
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct WriteOptions {
pub write_statistics: bool,
pub version: Version,
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum Version {
V1,
V2,
}
#[derive(PartialEq)]
enum State {
Initialised,
Started,
Finished,
}
impl From<Version> for i32 {
fn from(version: Version) -> Self {
match version {
Version::V1 => 1,
Version::V2 => 2,
}
}
}