pyarrow.fs.FileSystemHandler#
- classpyarrow.fs.FileSystemHandler#
Bases:
ABCAn abstract class exposing methods to implement PyFileSystem’s behavior.
- __init__(*args,**kwargs)#
Methods
__init__(*args, **kwargs)copy_file(self, src, dest)Implement PyFileSystem.copy_file(...).
create_dir(self, path, recursive)Implement PyFileSystem.create_dir(...).
delete_dir(self, path)Implement PyFileSystem.delete_dir(...).
delete_dir_contents(self, path[, missing_dir_ok])Implement PyFileSystem.delete_dir_contents(...).
delete_file(self, path)Implement PyFileSystem.delete_file(...).
delete_root_dir_contents(self)Implement PyFileSystem.delete_dir_contents("/", accept_root_dir=True).
get_file_info(self, paths)Implement PyFileSystem.get_file_info(paths).
get_file_info_selector(self, selector)Implement PyFileSystem.get_file_info(selector).
get_type_name(self)Implement PyFileSystem.type_name.
move(self, src, dest)Implement PyFileSystem.move(...).
normalize_path(self, path)Implement PyFileSystem.normalize_path(...).
open_append_stream(self, path, metadata)Implement PyFileSystem.open_append_stream(...).
open_input_file(self, path)Implement PyFileSystem.open_input_file(...).
open_input_stream(self, path)Implement PyFileSystem.open_input_stream(...).
open_output_stream(self, path, metadata)Implement PyFileSystem.open_output_stream(...).
- abstractmethodcopy_file(self,src,dest)#
Implement PyFileSystem.copy_file(…).
- abstractmethodcreate_dir(self,path,recursive)#
Implement PyFileSystem.create_dir(…).
- abstractmethoddelete_dir(self,path)#
Implement PyFileSystem.delete_dir(…).
- Parameters:
- path
str path of the directory.
- path
- abstractmethoddelete_dir_contents(self,path,missing_dir_ok=False)#
Implement PyFileSystem.delete_dir_contents(…).
- abstractmethoddelete_file(self,path)#
Implement PyFileSystem.delete_file(…).
- Parameters:
- path
str path of the file.
- path
- abstractmethoddelete_root_dir_contents(self)#
Implement PyFileSystem.delete_dir_contents(“/”, accept_root_dir=True).
- abstractmethodget_file_info(self,paths)#
Implement PyFileSystem.get_file_info(paths).
- abstractmethodget_file_info_selector(self,selector)#
Implement PyFileSystem.get_file_info(selector).
- Parameters:
- selector
FileSelector selector for which we want to retrieve the info.
- selector
- abstractmethodget_type_name(self)#
Implement PyFileSystem.type_name.
- abstractmethodmove(self,src,dest)#
Implement PyFileSystem.move(…).
- abstractmethodnormalize_path(self,path)#
Implement PyFileSystem.normalize_path(…).
- Parameters:
- path
str path of what should be normalized.
- path
- abstractmethodopen_append_stream(self,path,metadata)#
Implement PyFileSystem.open_append_stream(…).
- Parameters:
- path
str path of what should be opened.
- metadatamapping
Mapping of string keys to string values.Some filesystems support storing metadata along the file(such as “Content-Type”).
- path
- abstractmethodopen_input_file(self,path)#
Implement PyFileSystem.open_input_file(…).
- Parameters:
- path
str path of what should be opened.
- path

