Package org.apache.iceberg.encryption
Interface NativeEncryptionOutputFile
- All Superinterfaces:
EncryptedOutputFile
,OutputFile
An
EncryptedOutputFile
that can be used for format-native encryption.-
Method Summary
Modifier and TypeMethodDescriptiondefault PositionOutputStream
create()
Create a new file and return aPositionOutputStream
to it.default PositionOutputStream
Create a new file and return aPositionOutputStream
to it.Metadata about the encryption key that is being used to encrypt the associatedEncryptedOutputFile.encryptingOutputFile()
.default String
location()
Return the location this output file will create.AnOutputFile
instance for the underlying (plaintext) output stream.default InputFile
Return anInputFile
for the location of this output file.Methods inherited from interface org.apache.iceberg.encryption.EncryptedOutputFile
encryptingOutputFile
-
Method Details
-
keyMetadata
NativeEncryptionKeyMetadata keyMetadata()Description copied from interface:EncryptedOutputFile
Metadata about the encryption key that is being used to encrypt the associatedEncryptedOutputFile.encryptingOutputFile()
.- Specified by:
keyMetadata
in interfaceEncryptedOutputFile
-
plainOutputFile
OutputFile plainOutputFile()AnOutputFile
instance for the underlying (plaintext) output stream. -
create
Description copied from interface:OutputFile
Create a new file and return aPositionOutputStream
to it.If the file already exists, this will throw an exception.
- Specified by:
create
in interfaceOutputFile
- Returns:
- an output stream that can report its position
-
createOrOverwrite
Description copied from interface:OutputFile
Create a new file and return aPositionOutputStream
to it.If the file already exists, this will not throw an exception and will replace the file.
- Specified by:
createOrOverwrite
in interfaceOutputFile
- Returns:
- an output stream that can report its position
-
location
Description copied from interface:OutputFile
Return the location this output file will create.- Specified by:
location
in interfaceOutputFile
- Returns:
- the location of this output file
-
toInputFile
Description copied from interface:OutputFile
Return anInputFile
for the location of this output file.- Specified by:
toInputFile
in interfaceOutputFile
- Returns:
- an input file for the location of this output file
-