pub fn new(log: LogFile, table: TableFile, data: DataFile, link: DataFile, bucket_fill_target :usize) -> Result<Hammersbald, Error> {
        let mem = MemTable::new(log, table, data, link, bucket_fill_target);
        let mut db = Hammersbald { mem };
        db.recover()?;
        db.load()?;
        db.batch()?;
        Ok(db)
    }
/// create a new db with key and data file
create a new db with key and data file
create a new db with key and data file
pub fn new(log: LogFile, table: TableFile, data: DataFile, link: DataFile, bucket_fill_target :usize) -> Result<Hammersbald, Error> {
        let mem = MemTable::new(log, table, data, link, bucket_fill_target);
        let mut db = Hammersbald { mem };
        db.recover()?;
        db.load()?;
        db.batch()?;
        Ok(db)
    }
pub fn new ( log : LogFile , table : TableFile , data : DataFile , link : DataFile , bucket_fill_target : usize ) -> Result < Hammersbald , Error > { let mem = MemTable :: new ( log , table , data , link , bucket_fill_target ) ; let mut db = Hammersbald { mem } ; db . recover ( ) ? ; db . load ( ) ? ; db . batch ( ) ? ; Ok ( db ) }
create a new db with key and data file
create a new db with key and data file
log
LogFile
table
TableFile
data
DataFile
link
DataFile
bucket_fill_target
usize