Package org.apache.iceberg.encryption
Class AesGcmInputFile
java.lang.Object
org.apache.iceberg.encryption.AesGcmInputFile
- All Implemented Interfaces:
InputFile
-
Constructor Summary
ConstructorsConstructorDescriptionAesGcmInputFile(InputFile sourceFile, byte[] dataKey, byte[] fileAADPrefix) Deprecated.will be removed in 2.0.0 This API does not receive file length, and is therefore not safeAesGcmInputFile(InputFile sourceFile, byte[] dataKey, byte[] fileAADPrefix, Long length) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()Checks whether the file exists.longReturns the total length of the file, in byteslocation()The fully-qualified location of the input file as a String.Opens a newSeekableInputStreamfor the underlying data file
-
Constructor Details
-
AesGcmInputFile
Deprecated.will be removed in 2.0.0 This API does not receive file length, and is therefore not safe -
AesGcmInputFile
-
-
Method Details
-
getLength
public long getLength()Description copied from interface:InputFileReturns the total length of the file, in bytes -
newStream
Description copied from interface:InputFileOpens a newSeekableInputStreamfor the underlying data file -
location
Description copied from interface:InputFileThe fully-qualified location of the input file as a String. -
exists
public boolean exists()Description copied from interface:InputFileChecks whether the file exists.
-