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) void
close()
Close File IO to release underlying resources.static EncryptingFileIO
combine
(FileIO io, EncryptionManager em) void
deleteFile
(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 aInputFile
instance to read bytes from the file at the given path.newInputFile
(String path, long length) Get aInputFile
instance 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 aOutputFile
instance 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, wait
Methods inherited from interface org.apache.iceberg.io.FileIO
deleteFile, deleteFile, initialize, properties
-
Method Details
-
combine
-
bulkDecrypt
-
encryptionManager
-
newInputFile
Description copied from interface:FileIO
Get aInputFile
instance to read bytes from the file at the given path.- Specified by:
newInputFile
in interfaceFileIO
-
newInputFile
Description copied from interface:FileIO
Get aInputFile
instance to read bytes from the file at the given path, with a known file length.- Specified by:
newInputFile
in interfaceFileIO
-
newInputFile
- Specified by:
newInputFile
in interfaceFileIO
-
newInputFile
- Specified by:
newInputFile
in interfaceFileIO
-
newInputFile
- Specified by:
newInputFile
in interfaceFileIO
-
newDecryptingInputFile
-
newDecryptingInputFile
-
newOutputFile
Description copied from interface:FileIO
Get aOutputFile
instance to write bytes to the file at the given path.- Specified by:
newOutputFile
in interfaceFileIO
-
newEncryptingOutputFile
-
deleteFile
Description copied from interface:FileIO
Delete the file at the given path.- Specified by:
deleteFile
in interfaceFileIO
-
close
public void close()Description copied from interface:FileIO
Close 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.
-