public class GenericManifestFile extends java.lang.Object implements ManifestFile, StructLike, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericManifestFile.CopyBuilder |
ManifestFile.PartitionFieldSummaryADDED_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 and Description |
|---|
GenericManifestFile(org.apache.avro.Schema avroSchema)
Used by Avro reflection to instantiate this class when reading manifest files.
|
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) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
addedFilesCount()
Returns the number of data files with status ADDED in the manifest file.
|
java.lang.Long |
addedRowsCount()
Returns the total number of rows in all data files with status ADDED in the manifest file.
|
ManifestContent |
content()
Returns the content stored in the manifest; either DATA or DELETES.
|
ManifestFile |
copy()
Copies this
manifest file. |
static GenericManifestFile.CopyBuilder |
copyOf(ManifestFile manifestFile) |
java.lang.Integer |
deletedFilesCount()
Returns the number of data files with status DELETED in the manifest file.
|
java.lang.Long |
deletedRowsCount()
Returns the total number of rows in all data files with status DELETED in the manifest file.
|
boolean |
equals(java.lang.Object other) |
java.lang.Integer |
existingFilesCount()
Returns the number of data files with status EXISTING in the manifest file.
|
java.lang.Long |
existingRowsCount()
Returns the total number of rows in all data files with status EXISTING in the manifest file.
|
java.lang.Object |
get(int i) |
<T> T |
get(int pos,
java.lang.Class<T> javaClass) |
org.apache.avro.Schema |
getSchema() |
int |
hashCode() |
java.nio.ByteBuffer |
keyMetadata()
Returns metadata about how this manifest file is encrypted, or null if the file is stored in
plain text.
|
java.lang.Long |
lazyLength() |
long |
length()
Returns length of the manifest file.
|
long |
minSequenceNumber()
Returns the lowest data sequence number of any live file in the manifest.
|
java.util.List<ManifestFile.PartitionFieldSummary> |
partitions()
Returns a list of
partition field summaries. |
int |
partitionSpecId()
Returns iD of the
PartitionSpec used to write the manifest file. |
java.lang.String |
path()
Returns fully qualified path to the file, suitable for constructing a Hadoop Path.
|
void |
put(int i,
java.lang.Object v) |
long |
sequenceNumber()
Returns the sequence number of the commit that added the manifest file.
|
<T> void |
set(int i,
T value) |
int |
size() |
java.lang.Long |
snapshotId()
Returns iD of the snapshot that added the manifest file to table metadata.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waithasAddedFiles, hasDeletedFiles, hasExistingFiles, schemapublic GenericManifestFile(org.apache.avro.Schema avroSchema)
public 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)
public java.lang.String path()
ManifestFilepath in interface ManifestFilepublic java.lang.Long lazyLength()
public long length()
ManifestFilelength in interface ManifestFilepublic int partitionSpecId()
ManifestFilePartitionSpec used to write the manifest file.partitionSpecId in interface ManifestFilepublic ManifestContent content()
ManifestFilecontent in interface ManifestFilepublic long sequenceNumber()
ManifestFilesequenceNumber in interface ManifestFilepublic long minSequenceNumber()
ManifestFileminSequenceNumber in interface ManifestFilepublic java.lang.Long snapshotId()
ManifestFilesnapshotId in interface ManifestFilepublic java.lang.Integer addedFilesCount()
ManifestFileaddedFilesCount in interface ManifestFilepublic java.lang.Long addedRowsCount()
ManifestFileaddedRowsCount in interface ManifestFilepublic java.lang.Integer existingFilesCount()
ManifestFileexistingFilesCount in interface ManifestFilepublic java.lang.Long existingRowsCount()
ManifestFileexistingRowsCount in interface ManifestFilepublic java.lang.Integer deletedFilesCount()
ManifestFiledeletedFilesCount in interface ManifestFilepublic java.lang.Long deletedRowsCount()
ManifestFiledeletedRowsCount in interface ManifestFilepublic java.util.List<ManifestFile.PartitionFieldSummary> partitions()
ManifestFilepartition 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.
partitions in interface ManifestFilepublic java.nio.ByteBuffer keyMetadata()
ManifestFilekeyMetadata in interface ManifestFilepublic int size()
size in interface StructLikepublic <T> T get(int pos,
java.lang.Class<T> javaClass)
get in interface StructLikepublic java.lang.Object get(int i)
get in interface org.apache.avro.generic.IndexedRecordpublic <T> void set(int i,
T value)
set in interface StructLikepublic void put(int i,
java.lang.Object v)
put in interface org.apache.avro.generic.IndexedRecordpublic ManifestFile copy()
ManifestFilemanifest file. Readers can reuse manifest file instances; use
this method to make defensive copies.copy in interface ManifestFilepublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static GenericManifestFile.CopyBuilder copyOf(ManifestFile manifestFile)