Package org.apache.iceberg.io
Interface FileIO
- 
- All Superinterfaces:
- java.io.Serializable
 - All Known Implementing Classes:
- HadoopFileIO
 
 public interface FileIO extends java.io.SerializablePluggable module for reading, writing, and deleting files.Both table metadata files and data files can be written and read by this module. Implementations must be serializable because various clients of Spark tables may initialize this once and pass it off to a separate module that would then interact with the streams. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddeleteFile(java.lang.String path)Delete the file at the given path.default voiddeleteFile(InputFile file)default voiddeleteFile(OutputFile file)Convenience method todeleteanOutputFile.InputFilenewInputFile(java.lang.String path)Get aInputFileinstance to read bytes from the file at the given path.OutputFilenewOutputFile(java.lang.String path)Get aOutputFileinstance to write bytes to the file at the given path.
 
- 
- 
- 
Method Detail- 
newInputFileInputFile newInputFile(java.lang.String path) Get aInputFileinstance to read bytes from the file at the given path.
 - 
newOutputFileOutputFile newOutputFile(java.lang.String path) Get aOutputFileinstance to write bytes to the file at the given path.
 - 
deleteFilevoid deleteFile(java.lang.String path) Delete the file at the given path.
 - 
deleteFiledefault void deleteFile(InputFile file) 
 - 
deleteFiledefault void deleteFile(OutputFile file) Convenience method todeleteanOutputFile.
 
- 
 
-