use scale_info::prelude::string::String;
use serde::{Deserialize, Serialize};
use sp_std::prelude::*;
use crate::parquet::{column_compression_codec::ColumnCompressionCodec, types::ParquetType};
#[derive(Clone, PartialEq, Debug, Eq, Serialize, Deserialize)]
pub struct ParquetColumn {
name: String,
column_type: ParquetType,
compression: ColumnCompressionCodec,
bloom_filter: bool,
}
impl ParquetColumn {
pub fn new(
name: String,
column_type: ParquetType,
compression: ColumnCompressionCodec,
bloom_filter: bool,
) -> ParquetColumn {
ParquetColumn { name, column_type, compression, bloom_filter }
}
}