Struct datafusion::execution::DiskManager
source · pub struct DiskManager { /* private fields */ }
Expand description
Manages files generated during query execution, e.g. spill files generated while processing dataset larger than available memory.
Implementations§
source§impl DiskManager
impl DiskManager
sourcepub fn try_new(
config: DiskManagerConfig
) -> Result<Arc<DiskManager>, DataFusionError>
pub fn try_new( config: DiskManagerConfig ) -> Result<Arc<DiskManager>, DataFusionError>
Create a DiskManager given the configuration
sourcepub fn create_tmp_file(
&self,
request_description: &str
) -> Result<NamedTempFile<File>, DataFusionError>
pub fn create_tmp_file( &self, request_description: &str ) -> Result<NamedTempFile<File>, DataFusionError>
Return a temporary file from a randomized choice in the configured locations
If the file can not be created for some reason, returns an error message referencing the request description