Package org.apache.iceberg.spark.actions
Class ManifestFileBean
java.lang.Object
org.apache.iceberg.spark.actions.ManifestFileBean
- All Implemented Interfaces:
- Serializable,- ManifestFile
A serializable bean that contains a bare minimum to read a manifest.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.iceberg.ManifestFileManifestFile.PartitionFieldSummary
- 
Field SummaryFieldsFields inherited from interface org.apache.iceberg.ManifestFileADDED_FILES_COUNT, ADDED_ROWS_COUNT, DELETED_FILES_COUNT, DELETED_ROWS_COUNT, EXISTING_FILES_COUNT, EXISTING_ROWS_COUNT, KEY_METADATA, LENGTH, MANIFEST_CONTENT, MIN_SEQUENCE_NUMBER, PARTITION_SUMMARIES, PARTITION_SUMMARY_TYPE, PATH, SCHEMA, SEQUENCE_NUMBER, SNAPSHOT_ID, SPEC_ID
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the number of files with status ADDED in the manifest file.Returns the total number of rows in all files with status ADDED in the manifest file.content()Returns the content stored in the manifest; either DATA or DELETES.copy()Copies thismanifest file.Returns the number of files with status DELETED in the manifest file.Returns the total number of rows in all files with status DELETED in the manifest file.Returns the number of files with status EXISTING in the manifest file.Returns the total number of rows in all files with status EXISTING in the manifest file.static ManifestFileBeanfromManifest(ManifestFile manifest) getPath()Returns metadata about how this manifest file is encrypted, or null if the file is stored in plain text.longlength()Returns length of the manifest file.longReturns the lowest data sequence number of any live file in the manifest.Returns a list ofpartition field summaries.intReturns iD of thePartitionSpecused to write the manifest file.path()Returns fully qualified path to the file, suitable for constructing a Hadoop Path.longReturns the sequence number of the commit that added the manifest file.voidsetAddedSnapshotId(Long addedSnapshotId) voidsetContent(Integer content) voidvoidsetPartitionSpecId(Integer partitionSpecId) voidvoidsetSequenceNumber(Long sequenceNumber) Returns iD of the snapshot that added the manifest file to table metadata.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.ManifestFilehasAddedFiles, hasDeletedFiles, hasExistingFiles
- 
Field Details- 
ENCODER
 
- 
- 
Constructor Details- 
ManifestFileBeanpublic ManifestFileBean()
 
- 
- 
Method Details- 
fromManifest
- 
getPath
- 
setPath
- 
getLength
- 
setLength
- 
getPartitionSpecId
- 
setPartitionSpecId
- 
getAddedSnapshotId
- 
setAddedSnapshotId
- 
getContent
- 
setContent
- 
getSequenceNumber
- 
setSequenceNumber
- 
pathDescription copied from interface:ManifestFileReturns fully qualified path to the file, suitable for constructing a Hadoop Path.- Specified by:
- pathin interface- ManifestFile
 
- 
lengthpublic long length()Description copied from interface:ManifestFileReturns length of the manifest file.- Specified by:
- lengthin interface- ManifestFile
 
- 
partitionSpecIdpublic int partitionSpecId()Description copied from interface:ManifestFileReturns iD of thePartitionSpecused to write the manifest file.- Specified by:
- partitionSpecIdin interface- ManifestFile
 
- 
contentDescription copied from interface:ManifestFileReturns the content stored in the manifest; either DATA or DELETES.- Specified by:
- contentin interface- ManifestFile
 
- 
sequenceNumberpublic long sequenceNumber()Description copied from interface:ManifestFileReturns the sequence number of the commit that added the manifest file.- Specified by:
- sequenceNumberin interface- ManifestFile
 
- 
minSequenceNumberpublic long minSequenceNumber()Description copied from interface:ManifestFileReturns the lowest data sequence number of any live file in the manifest.- Specified by:
- minSequenceNumberin interface- ManifestFile
 
- 
snapshotIdDescription copied from interface:ManifestFileReturns iD of the snapshot that added the manifest file to table metadata.- Specified by:
- snapshotIdin interface- ManifestFile
 
- 
addedFilesCountDescription copied from interface:ManifestFileReturns the number of files with status ADDED in the manifest file.- Specified by:
- addedFilesCountin interface- ManifestFile
 
- 
addedRowsCountDescription copied from interface:ManifestFileReturns the total number of rows in all files with status ADDED in the manifest file.- Specified by:
- addedRowsCountin interface- ManifestFile
 
- 
existingFilesCountDescription copied from interface:ManifestFileReturns the number of files with status EXISTING in the manifest file.- Specified by:
- existingFilesCountin interface- ManifestFile
 
- 
existingRowsCountDescription copied from interface:ManifestFileReturns the total number of rows in all files with status EXISTING in the manifest file.- Specified by:
- existingRowsCountin interface- ManifestFile
 
- 
deletedFilesCountDescription copied from interface:ManifestFileReturns the number of files with status DELETED in the manifest file.- Specified by:
- deletedFilesCountin interface- ManifestFile
 
- 
deletedRowsCountDescription copied from interface:ManifestFileReturns the total number of rows in all files with status DELETED in the manifest file.- Specified by:
- deletedRowsCountin interface- ManifestFile
 
- 
partitionsDescription copied from interface:ManifestFileReturns a list ofpartition field summaries.Each summary corresponds to a field in the manifest file's partition spec, by ordinal. For example, the partition spec [ ts_day=date(ts), type=identity(type) ] will have 2 summaries. The first summary is for the ts_day partition field and the second is for the type partition field. - Specified by:
- partitionsin interface- ManifestFile
- Returns:
- a list of partition field summaries, one for each field in the manifest's spec
 
- 
keyMetadataDescription copied from interface:ManifestFileReturns metadata about how this manifest file is encrypted, or null if the file is stored in plain text.- Specified by:
- keyMetadatain interface- ManifestFile
 
- 
copyDescription copied from interface:ManifestFileCopies thismanifest file. Readers can reuse manifest file instances; use this method to make defensive copies.- Specified by:
- copyin interface- ManifestFile
- Returns:
- a copy of this manifest file
 
 
-