Package org.apache.iceberg
Class GenericManifestFile
- java.lang.Object
- 
- org.apache.iceberg.GenericManifestFile
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- org.apache.avro.generic.GenericContainer,- org.apache.avro.generic.IndexedRecord,- org.apache.avro.specific.SpecificData.SchemaConstructable,- ManifestFile,- StructLike
 
 public class GenericManifestFile extends java.lang.Object implements ManifestFile, StructLike, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGenericManifestFile.CopyBuilder- 
Nested classes/interfaces inherited from interface org.apache.iceberg.ManifestFileManifestFile.PartitionFieldSummary
 
- 
 - 
Field Summary- 
Fields 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 Constructor Description GenericManifestFile(java.lang.String path, long length, int specId, ManifestContent content, long sequenceNumber, long minSequenceNumber, java.lang.Long snapshotId, int addedFilesCount, long addedRowsCount, int existingFilesCount, long existingRowsCount, int deletedFilesCount, long deletedRowsCount, java.util.List<ManifestFile.PartitionFieldSummary> partitions, java.nio.ByteBuffer keyMetadata)GenericManifestFile(org.apache.avro.Schema avroSchema)Used by Avro reflection to instantiate this class when reading manifest files.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegeraddedFilesCount()Returns the number of data files with status ADDED in the manifest file.java.lang.LongaddedRowsCount()Returns the total number of rows in all data files with status ADDED in the manifest file.ManifestContentcontent()Returns the content stored in the manifest; either DATA or DELETES.ManifestFilecopy()Copies thismanifest file.static GenericManifestFile.CopyBuildercopyOf(ManifestFile manifestFile)java.lang.IntegerdeletedFilesCount()Returns the number of data files with status DELETED in the manifest file.java.lang.LongdeletedRowsCount()Returns the total number of rows in all data files with status DELETED in the manifest file.booleanequals(java.lang.Object other)java.lang.IntegerexistingFilesCount()Returns the number of data files with status EXISTING in the manifest file.java.lang.LongexistingRowsCount()Returns the total number of rows in all data files with status EXISTING in the manifest file.java.lang.Objectget(int i)<T> Tget(int pos, java.lang.Class<T> javaClass)org.apache.avro.SchemagetSchema()inthashCode()java.nio.ByteBufferkeyMetadata()Returns metadata about how this manifest file is encrypted, or null if the file is stored in plain text.java.lang.LonglazyLength()longlength()Returns length of the manifest file.longminSequenceNumber()Returns the lowest sequence number of any data file in the manifest.java.util.List<ManifestFile.PartitionFieldSummary>partitions()Returns a list ofpartition field summaries.intpartitionSpecId()Returns iD of thePartitionSpecused to write the manifest file.java.lang.Stringpath()Returns fully qualified path to the file, suitable for constructing a Hadoop Path.voidput(int i, java.lang.Object v)longsequenceNumber()Returns the sequence number of the commit that added the manifest file.<T> voidset(int i, T value)intsize()java.lang.LongsnapshotId()Returns iD of the snapshot that added the manifest file to table metadata.java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.iceberg.ManifestFilehasAddedFiles, hasDeletedFiles, hasExistingFiles
 
- 
 
- 
- 
- 
Constructor Detail- 
GenericManifestFilepublic GenericManifestFile(org.apache.avro.Schema avroSchema) Used by Avro reflection to instantiate this class when reading manifest files.
 - 
GenericManifestFilepublic GenericManifestFile(java.lang.String path, long length, int specId, ManifestContent content, long sequenceNumber, long minSequenceNumber, java.lang.Long snapshotId, int addedFilesCount, long addedRowsCount, int existingFilesCount, long existingRowsCount, int deletedFilesCount, long deletedRowsCount, java.util.List<ManifestFile.PartitionFieldSummary> partitions, java.nio.ByteBuffer keyMetadata)
 
- 
 - 
Method Detail- 
pathpublic java.lang.String path() Description copied from interface:ManifestFileReturns fully qualified path to the file, suitable for constructing a Hadoop Path.- Specified by:
- pathin interface- ManifestFile
 
 - 
lazyLengthpublic java.lang.Long lazyLength() 
 - 
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
 
 - 
contentpublic ManifestContent content() Description 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 sequence number of any data file in the manifest.- Specified by:
- minSequenceNumberin interface- ManifestFile
 
 - 
snapshotIdpublic java.lang.Long snapshotId() Description copied from interface:ManifestFileReturns iD of the snapshot that added the manifest file to table metadata.- Specified by:
- snapshotIdin interface- ManifestFile
 
 - 
addedFilesCountpublic java.lang.Integer addedFilesCount() Description copied from interface:ManifestFileReturns the number of data files with status ADDED in the manifest file.- Specified by:
- addedFilesCountin interface- ManifestFile
 
 - 
addedRowsCountpublic java.lang.Long addedRowsCount() Description copied from interface:ManifestFileReturns the total number of rows in all data files with status ADDED in the manifest file.- Specified by:
- addedRowsCountin interface- ManifestFile
 
 - 
existingFilesCountpublic java.lang.Integer existingFilesCount() Description copied from interface:ManifestFileReturns the number of data files with status EXISTING in the manifest file.- Specified by:
- existingFilesCountin interface- ManifestFile
 
 - 
existingRowsCountpublic java.lang.Long existingRowsCount() Description copied from interface:ManifestFileReturns the total number of rows in all data files with status EXISTING in the manifest file.- Specified by:
- existingRowsCountin interface- ManifestFile
 
 - 
deletedFilesCountpublic java.lang.Integer deletedFilesCount() Description copied from interface:ManifestFileReturns the number of data files with status DELETED in the manifest file.- Specified by:
- deletedFilesCountin interface- ManifestFile
 
 - 
deletedRowsCountpublic java.lang.Long deletedRowsCount() Description copied from interface:ManifestFileReturns the total number of rows in all data files with status DELETED in the manifest file.- Specified by:
- deletedRowsCountin interface- ManifestFile
 
 - 
partitionspublic java.util.List<ManifestFile.PartitionFieldSummary> partitions() Description 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
 
 - 
keyMetadatapublic java.nio.ByteBuffer keyMetadata() Description 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
 
 - 
sizepublic int size() - Specified by:
- sizein interface- StructLike
 
 - 
getpublic <T> T get(int pos, java.lang.Class<T> javaClass)- Specified by:
- getin interface- StructLike
 
 - 
getpublic java.lang.Object get(int i) - Specified by:
- getin interface- org.apache.avro.generic.IndexedRecord
 
 - 
setpublic <T> void set(int i, T value)- Specified by:
- setin interface- StructLike
 
 - 
putpublic void put(int i, java.lang.Object v)- Specified by:
- putin interface- org.apache.avro.generic.IndexedRecord
 
 - 
copypublic ManifestFile copy() Description 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
 
 - 
getSchemapublic org.apache.avro.Schema getSchema() - Specified by:
- getSchemain interface- org.apache.avro.generic.GenericContainer
 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
copyOfpublic static GenericManifestFile.CopyBuilder copyOf(ManifestFile manifestFile) 
 
- 
 
-