FilePathProvider

Trait FilePathProvider 

Source
pub trait FilePathProvider: Send + Sync {
    // Required methods
    fn build_index_file_path(&self, file_id: RegionFileId) -> String;
    fn build_index_file_path_with_version(
        &self,
        index_id: RegionIndexId,
    ) -> String;
    fn build_sst_file_path(&self, file_id: RegionFileId) -> String;
}
Expand description

Path provider for SST file and index file.

Required Methods§

Source

fn build_index_file_path(&self, file_id: RegionFileId) -> String

Creates index file path of given file id. Version default to 0, and not shown in the path.

Source

fn build_index_file_path_with_version(&self, index_id: RegionIndexId) -> String

Creates index file path of given index id (with version support).

Source

fn build_sst_file_path(&self, file_id: RegionFileId) -> String

Creates SST file path of given file id.

Implementors§