pub struct PhysicalMetadataFile {Show 17 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 hypertables: Vec<PhysicalHypertable>,
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>§hypertables: Vec<PhysicalHypertable>Persisted hypertable chunk spine (issue #866). Empty on legacy sidecars written before the feature and for non-hypertable databases.
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>, ) -> Self
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<Self>
pub fn load_for_data_path_with_source( data_path: &Path, ) -> Result<(Self, PhysicalMetadataSource)>
Sourcepub fn inspect_for_data_path(data_path: &Path) -> Result<Self>
pub fn inspect_for_data_path(data_path: &Path) -> Result<Self>
Inspect available metadata without repairing or publishing any file.
pub fn inspect_for_data_path_with_source( data_path: &Path, ) -> Result<(Self, PhysicalMetadataSource)>
pub fn save_for_data_path(&self, data_path: &Path) -> Result<PathBuf>
pub fn load_from_path(path: &Path) -> Result<Self>
pub fn save_to_path(&self, path: &Path) -> Result<()>
pub fn load_from_binary_path(path: &Path) -> Result<Self>
pub fn save_to_binary_path(&self, path: &Path) -> Result<()>
pub fn journal_paths_for_data_path(data_path: &Path) -> Result<Vec<PathBuf>>
pub fn prune_journal_for_data_path(&self, data_path: &Path) -> Result<()>
pub fn heal_primary_metadata_for_data_path( &self, data_path: &Path, ) -> Result<()>
pub fn mark_recovery(&self, source: PhysicalMetadataSource) -> Self
pub fn to_json_value(&self) -> JsonValue
pub fn from_json_value(value: &JsonValue) -> Result<Self>
Trait Implementations§
Source§impl Clone for PhysicalMetadataFile
impl Clone for PhysicalMetadataFile
Auto Trait Implementations§
impl !RefUnwindSafe for PhysicalMetadataFile
impl !UnwindSafe for PhysicalMetadataFile
impl Forget for PhysicalMetadataFile
impl Freeze for PhysicalMetadataFilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<Capability, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Capability, SetValZST)>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const ArcInner<dyn RemoteBackend> is !null: Freeze,
PhantomData<ArcInner<dyn RemoteBackend>>: Freeze,
*const ArcInner<dyn AtomicRemoteBackend> is !null: Freeze,
PhantomData<ArcInner<dyn AtomicRemoteBackend>>: Freeze,
PhantomData<(String, ())>: Freeze,
PhantomData<QueryAuditRule>: Freeze,
*const LeafNode<String, CollectionStats> is !null: Freeze,
PhantomData<Box<(String, CollectionStats)>>: Freeze,
PhantomData<ManifestEvent>: Freeze,
PhantomData<PhysicalIndexState>: Freeze,
PhantomData<PhysicalGraphProjection>: Freeze,
PhantomData<PhysicalAnalyticsJob>: Freeze,
PhantomData<PhysicalTreeDefinition>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
PhantomData<CollectionContract>: Freeze,
PhantomData<PhysicalHypertable>: Freeze,
PhantomData<ExportDescriptor>: Freeze,
PhantomData<SnapshotDescriptor>: Freeze,
impl Move for PhysicalMetadataFile
impl Send for PhysicalMetadataFilewhere
RawVecInner: Send,
NodeRef<Owned, Capability, SetValZST, LeafOrInternal>: Send,
BoxRaw<(Capability, SetValZST)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
Arc<dyn RemoteBackend>: Send,
Arc<dyn AtomicRemoteBackend>: Send,
RawTable<(String, ())>: Send,
NodeRef<Owned, String, CollectionStats, LeafOrInternal>: Send,
BoxRaw<(String, CollectionStats)>: Send,
NodeRef<Owned, String, u64, LeafOrInternal>: Send,
BoxRaw<(String, u64)>: Send,
BoxRaw<SqlTypeName>: Send,
Arc<str>: Send,
Arc<Expr>: Send,
Arc<[String]>: Send,
RawTable<(String, String)>: Send,
NodeRef<Owned, String, GraphVertexContract, LeafOrInternal>: Send,
BoxRaw<(String, GraphVertexContract)>: Send,
NodeRef<Owned, String, GraphEdgeContract, LeafOrInternal>: Send,
BoxRaw<(String, GraphEdgeContract)>: Send,
impl Sync for PhysicalMetadataFilewhere
RawVecInner: Sync,
NodeRef<Owned, Capability, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(Capability, SetValZST)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
Arc<dyn RemoteBackend>: Sync,
Arc<dyn AtomicRemoteBackend>: Sync,
RawTable<(String, ())>: Sync,
NodeRef<Owned, String, CollectionStats, LeafOrInternal>: Sync,
BoxRaw<(String, CollectionStats)>: Sync,
NodeRef<Owned, String, u64, LeafOrInternal>: Sync,
BoxRaw<(String, u64)>: Sync,
BoxRaw<SqlTypeName>: Sync,
Arc<str>: Sync,
Arc<Expr>: Sync,
Arc<[String]>: Sync,
RawTable<(String, String)>: Sync,
NodeRef<Owned, String, GraphVertexContract, LeafOrInternal>: Sync,
BoxRaw<(String, GraphVertexContract)>: Sync,
NodeRef<Owned, String, GraphEdgeContract, LeafOrInternal>: Sync,
BoxRaw<(String, GraphEdgeContract)>: Sync,
impl Unpin for PhysicalMetadataFilewhere
*const u8 is !null: Unpin,
*const LeafNode<Capability, SetValZST> is !null: Unpin,
Box<(Capability, SetValZST)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Arc<dyn RemoteBackend>: Unpin,
Arc<dyn AtomicRemoteBackend>: Unpin,
*const LeafNode<String, CollectionStats> is !null: Unpin,
Box<(String, CollectionStats)>: Unpin,
*const LeafNode<String, u64> is !null: Unpin,
Box<(String, u64)>: Unpin,
Box<SqlTypeName>: Unpin,
Arc<str>: Unpin,
Arc<Expr>: Unpin,
Arc<[String]>: Unpin,
*const LeafNode<String, GraphVertexContract> is !null: Unpin,
Box<(String, GraphVertexContract)>: Unpin,
*const LeafNode<String, GraphEdgeContract> is !null: Unpin,
Box<(String, GraphEdgeContract)>: Unpin,
impl UnsafeUnpin for PhysicalMetadataFilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<Capability, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Capability, SetValZST)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const ArcInner<dyn RemoteBackend> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn RemoteBackend>>: UnsafeUnpin,
*const ArcInner<dyn AtomicRemoteBackend> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AtomicRemoteBackend>>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
PhantomData<QueryAuditRule>: UnsafeUnpin,
*const LeafNode<String, CollectionStats> is !null: UnsafeUnpin,
PhantomData<Box<(String, CollectionStats)>>: UnsafeUnpin,
PhantomData<ManifestEvent>: UnsafeUnpin,
PhantomData<PhysicalIndexState>: UnsafeUnpin,
PhantomData<PhysicalGraphProjection>: UnsafeUnpin,
PhantomData<PhysicalAnalyticsJob>: UnsafeUnpin,
PhantomData<PhysicalTreeDefinition>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
PhantomData<CollectionContract>: UnsafeUnpin,
PhantomData<PhysicalHypertable>: UnsafeUnpin,
PhantomData<ExportDescriptor>: UnsafeUnpin,
PhantomData<SnapshotDescriptor>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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