pub struct PhysicalMetadataFile {Show 16 fields
pub protocol_version: String,
pub generated_at_unix_ms: u128,
pub last_loaded_from: Option<String>,
pub last_healed_at_unix_ms: Option<u128>,
pub manifest: SchemaManifest,
pub catalog: CatalogSnapshot,
pub manifest_events: Vec<ManifestEvent>,
pub indexes: Vec<PhysicalIndexState>,
pub graph_projections: Vec<PhysicalGraphProjection>,
pub analytics_jobs: Vec<PhysicalAnalyticsJob>,
pub tree_definitions: Vec<PhysicalTreeDefinition>,
pub collection_ttl_defaults_ms: BTreeMap<String, u64>,
pub collection_contracts: Vec<CollectionContract>,
pub exports: Vec<ExportDescriptor>,
pub superblock: SuperblockHeader,
pub snapshots: Vec<SnapshotDescriptor>,
}Fields§
§protocol_version: String§generated_at_unix_ms: u128§last_loaded_from: Option<String>§last_healed_at_unix_ms: Option<u128>§manifest: SchemaManifest§catalog: CatalogSnapshot§manifest_events: Vec<ManifestEvent>§indexes: Vec<PhysicalIndexState>§graph_projections: Vec<PhysicalGraphProjection>§analytics_jobs: Vec<PhysicalAnalyticsJob>§tree_definitions: Vec<PhysicalTreeDefinition>§collection_ttl_defaults_ms: BTreeMap<String, u64>§collection_contracts: Vec<CollectionContract>§exports: Vec<ExportDescriptor>§superblock: SuperblockHeader§snapshots: Vec<SnapshotDescriptor>Implementations§
Source§impl PhysicalMetadataFile
impl PhysicalMetadataFile
pub fn from_state( options: RedDBOptions, catalog: CatalogSnapshot, collection_roots: BTreeMap<String, u64>, indexes: Vec<PhysicalIndexState>, previous: Option<&PhysicalMetadataFile>, ) -> PhysicalMetadataFile
pub fn metadata_path_for(data_path: &Path) -> PathBuf
pub fn metadata_binary_path_for(data_path: &Path) -> PathBuf
pub fn metadata_journal_path_for(data_path: &Path, sequence: u64) -> PathBuf
pub fn export_data_path_for(data_path: &Path, name: &str) -> PathBuf
pub fn load_for_data_path( data_path: &Path, ) -> Result<PhysicalMetadataFile, Error>
pub fn load_for_data_path_with_source( data_path: &Path, ) -> Result<(PhysicalMetadataFile, PhysicalMetadataSource), Error>
pub fn save_for_data_path(&self, data_path: &Path) -> Result<PathBuf, Error>
pub fn load_from_path(path: &Path) -> Result<PhysicalMetadataFile, Error>
pub fn save_to_path(&self, path: &Path) -> Result<(), Error>
pub fn load_from_binary_path(path: &Path) -> Result<PhysicalMetadataFile, Error>
pub fn save_to_binary_path(&self, path: &Path) -> Result<(), Error>
pub fn journal_paths_for_data_path( data_path: &Path, ) -> Result<Vec<PathBuf>, Error>
pub fn prune_journal_for_data_path(&self, data_path: &Path) -> Result<(), Error>
pub fn heal_primary_metadata_for_data_path( &self, data_path: &Path, ) -> Result<(), Error>
pub fn mark_recovery( &self, source: PhysicalMetadataSource, ) -> PhysicalMetadataFile
pub fn to_json_value(&self) -> Value
pub fn from_json_value(value: &Value) -> Result<PhysicalMetadataFile, Error>
Trait Implementations§
Source§impl Clone for PhysicalMetadataFile
impl Clone for PhysicalMetadataFile
Source§fn clone(&self) -> PhysicalMetadataFile
fn clone(&self) -> PhysicalMetadataFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PhysicalMetadataFile
impl !RefUnwindSafe for PhysicalMetadataFile
impl Send for PhysicalMetadataFile
impl Sync for PhysicalMetadataFile
impl Unpin for PhysicalMetadataFile
impl UnsafeUnpin for PhysicalMetadataFile
impl !UnwindSafe for PhysicalMetadataFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request