use std::{collections::HashMap, ops::Bound};
use reifydb_core::common::CommitVersion;
use reifydb_type::{Result, util::cowvec::CowVec};
use crate::tier::{EntryKind, RangeBatch, RangeCursor, TierBackend, TierStorage};
#[derive(Clone)]
pub enum WarmStorage {}
impl TierStorage for WarmStorage {
fn get(&self, _table: EntryKind, _key: &[u8], _version: CommitVersion) -> Result<Option<CowVec<u8>>> {
match *self {}
}
fn set(
&self,
_version: CommitVersion,
_batches: HashMap<EntryKind, Vec<(CowVec<u8>, Option<CowVec<u8>>)>>,
) -> Result<()> {
match *self {}
}
fn range_next(
&self,
_table: EntryKind,
_cursor: &mut RangeCursor,
_start: Bound<&[u8]>,
_end: Bound<&[u8]>,
_version: CommitVersion,
_batch_size: usize,
) -> Result<RangeBatch> {
match *self {}
}
fn range_rev_next(
&self,
_table: EntryKind,
_cursor: &mut RangeCursor,
_start: Bound<&[u8]>,
_end: Bound<&[u8]>,
_version: CommitVersion,
_batch_size: usize,
) -> Result<RangeBatch> {
match *self {}
}
fn ensure_table(&self, _table: EntryKind) -> Result<()> {
match *self {}
}
fn clear_table(&self, _table: EntryKind) -> Result<()> {
match *self {}
}
fn drop(&self, _batches: HashMap<EntryKind, Vec<(CowVec<u8>, CommitVersion)>>) -> Result<()> {
match *self {}
}
fn get_all_versions(&self, _table: EntryKind, _key: &[u8]) -> Result<Vec<(CommitVersion, Option<CowVec<u8>>)>> {
match *self {}
}
}
impl TierBackend for WarmStorage {}