mod census;
mod handle;
pub(crate) mod index_policy;
pub(crate) mod inline;
pub(crate) mod inline_policy;
pub(crate) mod projection;
mod snapshot;
mod types;
pub use census::{
CensusRequest, CompactStoreReport, CompactStoreRequest, CompactionTarget, LiveCount,
MergeOutcome, StoreCensus, StoreObjects, SubspaceCensus, SubspaceMerge, SubspaceName,
};
#[cfg(test)]
pub(crate) use handle::BACKFILL_FILE_READ_CONCURRENCY;
pub(crate) use handle::Store;
pub use handle::{
CachePreload, Catalog, CatalogOptions, CommitMember, DeleteFileRegistration,
ExistingDeleteFile, LocatedDeletion, LocatedPositions, MaintenanceReport, MaintenanceRequest,
MaintenanceStatusPass, MaintenanceStatusStep, MigrationRequest, ReadOnlyCatalog,
RowSummaryWarmth,
};
pub use snapshot::CatalogSnapshot;
pub(crate) use snapshot::ScopedNames;
pub(crate) fn resolve_data_path(
data_prefix: &str,
table_prefix: &str,
path: &str,
path_is_relative: bool,
) -> String {
match (path_is_relative, data_prefix.is_empty()) {
(false, _) => path.to_owned(),
(true, true) => format!("{table_prefix}{path}"),
(true, false) => format!("{data_prefix}/{table_prefix}{path}"),
}
}
pub use types::{
BuildStep, ColumnAlteration, ColumnDef, ColumnId, ColumnInfo, ColumnOrder, ColumnStats,
DataFile, DataFileId, DataFileInfo, DeleteFile, DeleteFileId, DeleteFileInfo, FileColumnStats,
FileIndexEntry, FileIndexRemoval, FileRowCandidate, FlushedDataFile, IndexDef, IndexEntry,
IndexId, IndexInfo, IndexMaintenance, IndexState, InlineChunk, MacroId, MacroImplementationDef,
MacroInfo, MacroParameterDef, MappingId, MappingInfo, NameMappingDef, OptionScope,
PartitionColumnDef, PartitionId, PartitionSpec, RecentRow, ScheduledDeletion, SchemaId,
SchemaInfo, SnapshotId, SnapshotInfo, SortId, SortKeyDef, SortSpec, TableId, TableInfo,
TableStats, TagEntry, TagTarget, Timestamp, ViewId, ViewInfo,
};