Package org.apache.iceberg.encryption
Class AesGcmOutputFile
java.lang.Object
org.apache.iceberg.encryption.AesGcmOutputFile
- All Implemented Interfaces:
OutputFile
-
Constructor Summary
ConstructorDescriptionAesGcmOutputFile
(OutputFile targetFile, byte[] dataKey, byte[] fileAADPrefix) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a new file and return aPositionOutputStream
to it.Create a new file and return aPositionOutputStream
to it.location()
Return the location this output file will create.Return anInputFile
for the location of this output file.
-
Constructor Details
-
AesGcmOutputFile
-
-
Method Details
-
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
-