pub struct DataStorage { /* private fields */ }Implementations§
Source§impl DataStorage
impl DataStorage
pub fn new<P: AsRef<Path>>( database_dir: P, storage_id: StorageId, formatter: Arc<BitcaskyFormatter>, options: Arc<BitcaskyOptions>, ) -> Result<Self>
pub fn open<P: AsRef<Path>>( database_dir: P, storage_id: StorageId, options: Arc<BitcaskyOptions>, ) -> Result<Self>
pub fn storage_id(&self) -> StorageId
pub fn is_dirty(&mut self) -> bool
pub fn iter(&self) -> Result<StorageIter>
pub fn get_telemetry_data(&self) -> DataStorageTelemetry
Trait Implementations§
Source§impl DataStorageReader for DataStorage
impl DataStorageReader for DataStorage
Source§fn read_value(
&mut self,
row_offset: usize,
) -> Result<Option<TimedValue<Vec<u8>>>>
fn read_value( &mut self, row_offset: usize, ) -> Result<Option<TimedValue<Vec<u8>>>>
Read value from this storage at row_offset
Source§fn read_next_row(&mut self) -> Result<Option<RowToRead>>
fn read_next_row(&mut self) -> Result<Option<RowToRead>>
Read next value from this storage
fn seek_to_end(&mut self) -> Result<()>
fn offset(&self) -> usize
Source§impl DataStorageWriter for DataStorage
impl DataStorageWriter for DataStorage
Auto Trait Implementations§
impl Freeze for DataStorage
impl RefUnwindSafe for DataStorage
impl Send for DataStorage
impl Sync for DataStorage
impl Unpin for DataStorage
impl UnwindSafe for DataStorage
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