use crate::rocksdb_impl::shared::make_field_key;
use crate::{BPTree, LenType, RrError, WrapDb};
pub struct BPTreeImpl {}
impl<T: WrapDb> BPTree<T> for BPTreeImpl {
fn set_exist(&self, t: &T, key: &[u8], field: &[u8], _value: &[u8]) -> Result<(), RrError> {
let field_key = make_field_key(key, field);
if t.exist(&field_key)? {
}
Ok(())
}
fn set_not_exist(&self, _t: &T, _key: &[u8], _field: &[u8], _value: &[u8]) -> Result<(), RrError> {
todo!()
}
fn set(&self, _t: &T, _key: &[u8], _field: &[u8], _value: &[u8]) -> Result<(), RrError> {
todo!()
}
fn del_first(&self, _t: &T, _key: &[u8]) -> Result<Option<(Vec<u8>, Vec<u8>)>, RrError> {
todo!()
}
fn del_last(&self, _t: &T, _key: &[u8]) -> Result<Option<(Vec<u8>, Vec<u8>)>, RrError> {
todo!()
}
fn del(&self, _t: &T, _key: &[u8], _field: &[u8]) -> Result<Option<Vec<u8>>, RrError> {
todo!()
}
fn get_first(&self, _t: &T, _key: &[u8]) -> Result<Option<(Vec<u8>, Vec<u8>)>, RrError> {
todo!()
}
fn get_last(&self, _t: &T, _key: &[u8]) -> Result<Option<(Vec<u8>, Vec<u8>)>, RrError> {
todo!()
}
fn get(&self, _t: &T, _key: &[u8], _field: &[u8]) -> Result<Option<Vec<u8>>, RrError> {
todo!()
}
fn len(&self, _t: &T, _key: &[u8]) -> Result<Option<LenType>, RrError> {
todo!()
}
fn del_key(&self, _t: &T, _key: &[u8]) -> Result<(), RrError> {
todo!()
}
}