pub struct ParquetStorage { /* private fields */ }Expand description
Parquet-based persistent storage for events
Implementations§
Source§impl ParquetStorage
impl ParquetStorage
pub fn new(storage_dir: impl AsRef<Path>) -> Result<Self>
Sourcepub fn append_event(&mut self, event: Event) -> Result<()>
pub fn append_event(&mut self, event: Event) -> Result<()>
Add an event to the current batch
Sourcepub fn load_all_events(&self) -> Result<Vec<Event>>
pub fn load_all_events(&self) -> Result<Vec<Event>>
Load events from all Parquet files
Sourcepub fn stats(&self) -> Result<StorageStats>
pub fn stats(&self) -> Result<StorageStats>
Get storage statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParquetStorage
impl RefUnwindSafe for ParquetStorage
impl Send for ParquetStorage
impl Sync for ParquetStorage
impl Unpin for ParquetStorage
impl UnwindSafe for ParquetStorage
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> 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 more