Package org.apache.iceberg.io
Interface FileIO
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
HadoopFileIO
public interface FileIO extends java.io.Serializable
Pluggable 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
deleteFile(java.lang.String path)
Delete the file at the given path.default void
deleteFile(InputFile file)
default void
deleteFile(OutputFile file)
Convenience method todelete
anOutputFile
.InputFile
newInputFile(java.lang.String path)
Get aInputFile
instance to read bytes from the file at the given path.OutputFile
newOutputFile(java.lang.String path)
Get aOutputFile
instance to write bytes to the file at the given path.
-
-
-
Method Detail
-
newInputFile
InputFile newInputFile(java.lang.String path)
Get aInputFile
instance to read bytes from the file at the given path.
-
newOutputFile
OutputFile newOutputFile(java.lang.String path)
Get aOutputFile
instance to write bytes to the file at the given path.
-
deleteFile
void deleteFile(java.lang.String path)
Delete the file at the given path.
-
deleteFile
default void deleteFile(InputFile file)
-
deleteFile
default void deleteFile(OutputFile file)
Convenience method todelete
anOutputFile
.
-
-