pub type FileBuilder = Builder<BufWriter<File>, BufWriter<File>>;Aliased Type§
pub struct FileBuilder { /* private fields */ }Implementations§
Source§impl FileBuilder
impl FileBuilder
Sourcepub fn create_files(
index_path: impl AsRef<Path>,
value_path: impl AsRef<Path>,
) -> Result<Self, Error>
pub fn create_files( index_path: impl AsRef<Path>, value_path: impl AsRef<Path>, ) -> Result<Self, Error>
Creates a new Builder, using the file at index_path for an index writer and the file at value_path as a value
writer.
This always overwrites the given files.
After calling finish, these same files can be used with Cache::map_files.