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 SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.io.FileIOdeleteFile, deleteFile, initialize, properties
- 
Method Details- 
combine
- 
bulkDecrypt
- 
encryptionManager
- 
newInputFileDescription copied from interface:FileIOGet aInputFileinstance to read bytes from the file at the given path.- Specified by:
- newInputFilein interface- FileIO
 
- 
newInputFileDescription copied from interface:FileIOGet aInputFileinstance to read bytes from the file at the given path, with a known file length.- Specified by:
- newInputFilein interface- FileIO
 
- 
newInputFile- Specified by:
- newInputFilein interface- FileIO
 
- 
newInputFile- Specified by:
- newInputFilein interface- FileIO
 
- 
newInputFile- Specified by:
- newInputFilein interface- FileIO
 
- 
newDecryptingInputFile
- 
newDecryptingInputFile
- 
newOutputFileDescription copied from interface:FileIOGet aOutputFileinstance to write bytes to the file at the given path.- Specified by:
- newOutputFilein interface- FileIO
 
- 
newEncryptingOutputFile
- 
deleteFileDescription copied from interface:FileIODelete the file at the given path.- Specified by:
- deleteFilein interface- FileIO
 
- 
closepublic 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. 
 
-