/// Create a new partition catalog object.
///
/// This function is not pub because `Partition`s should be
/// created using the interfaces on [`Catalog`](crate::db::catalog::Catalog) and not
/// instantiated directly.
Create a new partition catalog object.
Create a new partition catalog object .
pub(crate) fn new(key: impl Into<String>, metrics: PartitionMetrics) -> Self {
        let key = key.into();
        let now = Utc::now();
        Self {
            key,
            tables: BTreeMap::new(),
            created_at: now,
            last_write_at: now,
            metrics,
        }
    }
pub ( crate ) fn new ( key : impl Into < String > , metrics : PartitionMetrics ) -> Self { let key = key . into ( ) ; let now = Utc :: now ( ) ; Self { key , tables : BTreeMap :: new ( ) , created_at : now , last_write_at : now , metrics , } }
Create a new partition catalog object.
Create a new partition catalog object .
key
impl Into<String>
metrics
PartitionMetrics