Package org.apache.iceberg.encryption
Interface NativeEncryptionOutputFile
-
- All Superinterfaces:
EncryptedOutputFile,OutputFile
public interface NativeEncryptionOutputFile extends EncryptedOutputFile, OutputFile
AnEncryptedOutputFilethat can be used for format-native encryption.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PositionOutputStreamcreate()Create a new file and return aPositionOutputStreamto it.default PositionOutputStreamcreateOrOverwrite()Create a new file and return aPositionOutputStreamto it.NativeEncryptionKeyMetadatakeyMetadata()Metadata about the encryption key that is being used to encrypt the associatedEncryptedOutputFile.encryptingOutputFile().default java.lang.Stringlocation()Return the location this output file will create.OutputFileplainOutputFile()AnOutputFileinstance for the underlying (plaintext) output stream.default InputFiletoInputFile()Return anInputFilefor the location of this output file.-
Methods inherited from interface org.apache.iceberg.encryption.EncryptedOutputFile
encryptingOutputFile
-
-
-
-
Method Detail
-
keyMetadata
NativeEncryptionKeyMetadata keyMetadata()
Description copied from interface:EncryptedOutputFileMetadata about the encryption key that is being used to encrypt the associatedEncryptedOutputFile.encryptingOutputFile().- Specified by:
keyMetadatain interfaceEncryptedOutputFile
-
plainOutputFile
OutputFile plainOutputFile()
AnOutputFileinstance for the underlying (plaintext) output stream.
-
create
default PositionOutputStream create()
Description copied from interface:OutputFileCreate a new file and return aPositionOutputStreamto it.If the file already exists, this will throw an exception.
- Specified by:
createin interfaceOutputFile- Returns:
- an output stream that can report its position
-
createOrOverwrite
default PositionOutputStream createOrOverwrite()
Description copied from interface:OutputFileCreate a new file and return aPositionOutputStreamto it.If the file already exists, this will not throw an exception and will replace the file.
- Specified by:
createOrOverwritein interfaceOutputFile- Returns:
- an output stream that can report its position
-
location
default java.lang.String location()
Description copied from interface:OutputFileReturn the location this output file will create.- Specified by:
locationin interfaceOutputFile- Returns:
- the location of this output file
-
toInputFile
default InputFile toInputFile()
Description copied from interface:OutputFileReturn anInputFilefor the location of this output file.- Specified by:
toInputFilein interfaceOutputFile- Returns:
- an input file for the location of this output file
-
-