Package org.apache.iceberg
Interface ManifestFile
- All Known Implementing Classes:
- GenericManifestFile,- ManifestFileBean
public interface ManifestFile
Represents a manifest file that can be scanned to find files in a table.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSummarizes the values of one partition field stored in a manifest file.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final intstatic final Types.StructTypestatic final Types.NestedFieldstatic final Schemastatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedField
- 
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.default LongReturns the starting row ID to assign to new rows in ADDED data files.default booleanReturns true if the manifest contains ADDED entries or if the count is not known.default booleanReturns true if the manifest contains DELETED entries or if the count is not known.default booleanReturns true if the manifest contains EXISTING entries or if the count is not known.default ByteBufferReturns 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.static Schemaschema()longReturns the sequence number of the commit that added the manifest file.Returns iD of the snapshot that added the manifest file to table metadata.
- 
Field Details- 
PARTITION_SUMMARIES_ELEMENT_IDstatic final int PARTITION_SUMMARIES_ELEMENT_ID- See Also:
 
- 
PATH
- 
LENGTH
- 
SPEC_ID
- 
MANIFEST_CONTENT
- 
SEQUENCE_NUMBER
- 
MIN_SEQUENCE_NUMBER
- 
SNAPSHOT_ID
- 
ADDED_FILES_COUNT
- 
EXISTING_FILES_COUNT
- 
DELETED_FILES_COUNT
- 
ADDED_ROWS_COUNT
- 
EXISTING_ROWS_COUNT
- 
DELETED_ROWS_COUNT
- 
PARTITION_SUMMARY_TYPE
- 
PARTITION_SUMMARIES
- 
KEY_METADATA
- 
FIRST_ROW_ID
- 
SCHEMA
 
- 
- 
Method Details- 
schema
- 
pathString path()Returns fully qualified path to the file, suitable for constructing a Hadoop Path.
- 
lengthlong length()Returns length of the manifest file.
- 
partitionSpecIdint partitionSpecId()Returns iD of thePartitionSpecused to write the manifest file.
- 
contentManifestContent content()Returns the content stored in the manifest; either DATA or DELETES.
- 
sequenceNumberlong sequenceNumber()Returns the sequence number of the commit that added the manifest file.
- 
minSequenceNumberlong minSequenceNumber()Returns the lowest data sequence number of any live file in the manifest.
- 
snapshotIdLong snapshotId()Returns iD of the snapshot that added the manifest file to table metadata.
- 
hasAddedFilesdefault boolean hasAddedFiles()Returns true if the manifest contains ADDED entries or if the count is not known.- Returns:
- whether this manifest contains entries with ADDED status
 
- 
addedFilesCountInteger addedFilesCount()Returns the number of files with status ADDED in the manifest file.
- 
addedRowsCountLong addedRowsCount()Returns the total number of rows in all files with status ADDED in the manifest file.
- 
hasExistingFilesdefault boolean hasExistingFiles()Returns true if the manifest contains EXISTING entries or if the count is not known.- Returns:
- whether this manifest contains entries with EXISTING status
 
- 
existingFilesCountInteger existingFilesCount()Returns the number of files with status EXISTING in the manifest file.
- 
existingRowsCountLong existingRowsCount()Returns the total number of rows in all files with status EXISTING in the manifest file.
- 
hasDeletedFilesdefault boolean hasDeletedFiles()Returns true if the manifest contains DELETED entries or if the count is not known.- Returns:
- whether this manifest contains entries with DELETED status
 
- 
deletedFilesCountInteger deletedFilesCount()Returns the number of files with status DELETED in the manifest file.
- 
deletedRowsCountLong deletedRowsCount()Returns the total number of rows in all files with status DELETED in the manifest file.
- 
partitionsList<ManifestFile.PartitionFieldSummary> partitions()Returns 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. - Returns:
- a list of partition field summaries, one for each field in the manifest's spec
 
- 
keyMetadataReturns metadata about how this manifest file is encrypted, or null if the file is stored in plain text.
- 
firstRowIdReturns the starting row ID to assign to new rows in ADDED data files.
- 
copyManifestFile copy()Copies thismanifest file. Readers can reuse manifest file instances; use this method to make defensive copies.- Returns:
- a copy of this manifest file
 
 
-