pub trait LocationGenerator: Clone + Send + 'static {
// Required method
fn generate_location(&self, file_name: &str) -> String;
}
Expand description
LocationGenerator
used to generate the location of data file.
Required Methods§
sourcefn generate_location(&self, file_name: &str) -> String
fn generate_location(&self, file_name: &str) -> String
Generate an absolute path for the given file name. e.g For file name “part-00000.parquet”, the generated location maybe “/table/data/part-00000.parquet”
Object Safety§
This trait is not object safe.