Struct solana_ledger::blockstore_db::LedgerColumn
source · pub struct LedgerColumn<C>where
C: Column + ColumnName,{
backend: Arc<Rocks>,
column: PhantomData<C>,
pub column_options: Arc<LedgerColumnOptions>,
read_perf_status: PerfSamplingStatus,
write_perf_status: PerfSamplingStatus,
}
Fields§
§backend: Arc<Rocks>
§column: PhantomData<C>
§column_options: Arc<LedgerColumnOptions>
§read_perf_status: PerfSamplingStatus
§write_perf_status: PerfSamplingStatus
Implementations§
source§impl<C: Column + ColumnName> LedgerColumn<C>
impl<C: Column + ColumnName> LedgerColumn<C>
pub fn submit_rocksdb_cf_metrics(&self)
source§impl<C> LedgerColumn<C>where
C: Column + ColumnName,
impl<C> LedgerColumn<C>where C: Column + ColumnName,
pub fn get_bytes(&self, key: C::Index) -> Result<Option<Vec<u8>>>
pub fn multi_get_bytes( &self, keys: Vec<C::Index> ) -> Vec<Result<Option<Vec<u8>>>>
pub fn iter( &self, iterator_mode: IteratorMode<C::Index> ) -> Result<impl Iterator<Item = (C::Index, Box<[u8]>)> + '_>
pub fn delete_slot( &self, batch: &mut WriteBatch<'_>, from: Option<Slot>, to: Option<Slot> ) -> Result<bool>where C::Index: PartialOrd + Copy + ColumnName,
pub fn compact_range(&self, from: Slot, to: Slot) -> Result<bool>where C::Index: PartialOrd + Copy,
pub fn handle(&self) -> &ColumnFamily
pub fn put_bytes(&self, key: C::Index, value: &[u8]) -> Result<()>
source§impl<C> LedgerColumn<C>where
C: TypedColumn + ColumnName,
impl<C> LedgerColumn<C>where C: TypedColumn + ColumnName,
source§impl<C> LedgerColumn<C>where
C: ProtobufColumn + ColumnName,
impl<C> LedgerColumn<C>where C: ProtobufColumn + ColumnName,
Trait Implementations§
Auto Trait Implementations§
impl<C> RefUnwindSafe for LedgerColumn<C>where C: RefUnwindSafe,
impl<C> Send for LedgerColumn<C>where C: Send,
impl<C> Sync for LedgerColumn<C>where C: Sync,
impl<C> Unpin for LedgerColumn<C>where C: Unpin,
impl<C> UnwindSafe for LedgerColumn<C>where C: UnwindSafe,
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> 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