pub fn new(
        table_name: impl Into<String>,
        table_data: RecordBatch,
        mut metrics: ChunkMetrics,
    ) -> Self {
        let table_name = table_name.into();
        let row_group = record_batch_to_row_group_with_logging(&table_name, table_data);
        let storage_statistics = row_group.column_storage_statistics();

        let table = Table::with_row_group(table_name, row_group);

        metrics.update_column_storage_statistics(&storage_statistics);

        Self { metrics, table }
    }
/// Start a new Chunk from the given record batch.
Start a new Chunk from the given record batch.
Start a new Chunk from the given record batch .
pub fn new(
        table_name: impl Into<String>,
        table_data: RecordBatch,
        mut metrics: ChunkMetrics,
    ) -> Self {
        let table_name = table_name.into();
        let row_group = record_batch_to_row_group_with_logging(&table_name, table_data);
        let storage_statistics = row_group.column_storage_statistics();
        let table = Table::with_row_group(table_name, row_group);
        metrics.update_column_storage_statistics(&storage_statistics);
        Self { metrics, table }
    }
pub fn new ( table_name : impl Into < String > , table_data : RecordBatch , mut metrics : ChunkMetrics , ) -> Self { let table_name = table_name . into ( ) ; let row_group = record_batch_to_row_group_with_logging ( & table_name , table_data ) ; let storage_statistics = row_group . column_storage_statistics ( ) ; let table = Table :: with_row_group ( table_name , row_group ) ; metrics . update_column_storage_statistics ( & storage_statistics ) ; Self { metrics , table } }
Start a new Chunk from the given record batch.
Start a new Chunk from the given record batch .
table_name
impl Into<String>
table_data
RecordBatch
metrics
ChunkMetrics
table_name
impl Into<String>
table_data
RecordBatch
metrics
ChunkMetrics