Package org.apache.iceberg.encryption
Class EncryptingFileIO
java.lang.Object
org.apache.iceberg.encryption.EncryptingFileIO
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,FileIO
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbulkDecrypt(Iterable<? extends ContentFile<?>> files) voidclose()Close File IO to release underlying resources.static EncryptingFileIOcombine(FileIO io, EncryptionManager em) voiddeleteFile(String path) Delete the file at the given path.newDecryptingInputFile(String path, long length, ByteBuffer buffer) newDecryptingInputFile(String path, ByteBuffer buffer) newInputFile(String path) Get aInputFileinstance to read bytes from the file at the given path.newInputFile(String path, long length) Get aInputFileinstance to read bytes from the file at the given path, with a known file length.newInputFile(DataFile file) newInputFile(DeleteFile file) newInputFile(ManifestFile manifest) newOutputFile(String path) Get aOutputFileinstance to write bytes to the file at the given path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.io.FileIO
deleteFile, deleteFile, initialize, properties
-
Method Details
-
combine
-
bulkDecrypt
-
encryptionManager
-
newInputFile
Description copied from interface:FileIOGet aInputFileinstance to read bytes from the file at the given path.- Specified by:
newInputFilein interfaceFileIO
-
newInputFile
Description copied from interface:FileIOGet aInputFileinstance to read bytes from the file at the given path, with a known file length.- Specified by:
newInputFilein interfaceFileIO
-
newInputFile
- Specified by:
newInputFilein interfaceFileIO
-
newInputFile
- Specified by:
newInputFilein interfaceFileIO
-
newInputFile
- Specified by:
newInputFilein interfaceFileIO
-
newDecryptingInputFile
-
newDecryptingInputFile
-
newOutputFile
Description copied from interface:FileIOGet aOutputFileinstance to write bytes to the file at the given path.- Specified by:
newOutputFilein interfaceFileIO
-
newEncryptingOutputFile
-
deleteFile
Description copied from interface:FileIODelete the file at the given path.- Specified by:
deleteFilein interfaceFileIO
-
close
public void close()Description copied from interface:FileIOClose File IO to release underlying resources.Calling this method is only required when this FileIO instance is no longer expected to be used, and the resources it holds need to be explicitly released to avoid resource leaks.
-