Package org.apache.iceberg.encryption
Interface NativeEncryptionOutputFile
-
- All Superinterfaces:
EncryptedOutputFile
,OutputFile
public interface NativeEncryptionOutputFile extends EncryptedOutputFile, OutputFile
AnEncryptedOutputFile
that can be used for format-native encryption.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PositionOutputStream
create()
Create a new file and return aPositionOutputStream
to it.default PositionOutputStream
createOrOverwrite()
Create a new file and return aPositionOutputStream
to it.NativeEncryptionKeyMetadata
keyMetadata()
Metadata about the encryption key that is being used to encrypt the associatedEncryptedOutputFile.encryptingOutputFile()
.default java.lang.String
location()
Return the location this output file will create.OutputFile
plainOutputFile()
AnOutputFile
instance for the underlying (plaintext) output stream.default InputFile
toInputFile()
Return anInputFile
for 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: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
default PositionOutputStream 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
default PositionOutputStream 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
default java.lang.String 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
default InputFile 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
-
-