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.PartitionFieldSummary
ADDED_FILES_COUNT, ADDED_ROWS_COUNT, DELETED_FILES_COUNT, DELETED_ROWS_COUNT, EXISTING_FILES_COUNT, EXISTING_ROWS_COUNT, 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) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
addedFilesCount() |
java.lang.Long |
addedRowsCount() |
ManifestContent |
content() |
ManifestFile |
copy()
Copies this
manifest file . |
static GenericManifestFile.CopyBuilder |
copyOf(ManifestFile manifestFile) |
java.lang.Integer |
deletedFilesCount() |
java.lang.Long |
deletedRowsCount() |
boolean |
equals(java.lang.Object other) |
java.lang.Integer |
existingFilesCount() |
java.lang.Long |
existingRowsCount() |
java.lang.Object |
get(int i) |
<T> T |
get(int pos,
java.lang.Class<T> javaClass) |
org.apache.avro.Schema |
getSchema() |
int |
hashCode() |
java.lang.Long |
lazyLength() |
long |
length() |
long |
minSequenceNumber() |
java.util.List<ManifestFile.PartitionFieldSummary> |
partitions()
Returns a list of
partition field summaries . |
int |
partitionSpecId() |
java.lang.String |
path() |
void |
put(int i,
java.lang.Object v) |
long |
sequenceNumber() |
<T> void |
set(int i,
T value) |
int |
size() |
java.lang.Long |
snapshotId() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasAddedFiles, hasDeletedFiles, hasExistingFiles, schema
public 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)
public java.lang.String path()
path
in interface ManifestFile
public java.lang.Long lazyLength()
public long length()
length
in interface ManifestFile
public int partitionSpecId()
partitionSpecId
in interface ManifestFile
PartitionSpec
used to write the manifest filepublic ManifestContent content()
content
in interface ManifestFile
public long sequenceNumber()
sequenceNumber
in interface ManifestFile
public long minSequenceNumber()
minSequenceNumber
in interface ManifestFile
public java.lang.Long snapshotId()
snapshotId
in interface ManifestFile
public java.lang.Integer addedFilesCount()
addedFilesCount
in interface ManifestFile
public java.lang.Long addedRowsCount()
addedRowsCount
in interface ManifestFile
public java.lang.Integer existingFilesCount()
existingFilesCount
in interface ManifestFile
public java.lang.Long existingRowsCount()
existingRowsCount
in interface ManifestFile
public java.lang.Integer deletedFilesCount()
deletedFilesCount
in interface ManifestFile
public java.lang.Long deletedRowsCount()
deletedRowsCount
in interface ManifestFile
public java.util.List<ManifestFile.PartitionFieldSummary> partitions()
ManifestFile
partition 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 ManifestFile
public int size()
size
in interface StructLike
public <T> T get(int pos, java.lang.Class<T> javaClass)
get
in interface StructLike
public java.lang.Object get(int i)
get
in interface org.apache.avro.generic.IndexedRecord
public <T> void set(int i, T value)
set
in interface StructLike
public void put(int i, java.lang.Object v)
put
in interface org.apache.avro.generic.IndexedRecord
public ManifestFile copy()
ManifestFile
manifest file
. Readers can reuse manifest file instances; use
this method to make defensive copies.copy
in interface ManifestFile
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static GenericManifestFile.CopyBuilder copyOf(ManifestFile manifestFile)