public class GenericManifestFile extends java.lang.Object implements ManifestFile, StructLike, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable
ManifestFile.PartitionFieldSummarySCHEMA| 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,
long snapshotId,
int addedFilesCount,
int existingFilesCount,
int deletedFilesCount,
java.util.List<ManifestFile.PartitionFieldSummary> partitions) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
addedFilesCount() |
ManifestFile |
copy()
Copies this
manifest file. |
java.lang.Integer |
deletedFilesCount() |
boolean |
equals(java.lang.Object other) |
java.lang.Integer |
existingFilesCount() |
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() |
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) |
<T> void |
set(int i,
T value) |
int |
size() |
java.lang.Long |
snapshotId() |
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,
long snapshotId,
int addedFilesCount,
int existingFilesCount,
int deletedFilesCount,
java.util.List<ManifestFile.PartitionFieldSummary> partitions)
public java.lang.String path()
path in interface ManifestFilepublic java.lang.Long lazyLength()
public long length()
length in interface ManifestFilepublic int partitionSpecId()
partitionSpecId in interface ManifestFilePartitionSpec used to write the manifest filepublic java.lang.Long snapshotId()
snapshotId in interface ManifestFilepublic java.lang.Integer addedFilesCount()
addedFilesCount in interface ManifestFilepublic java.lang.Integer existingFilesCount()
existingFilesCount in interface ManifestFilepublic java.lang.Integer deletedFilesCount()
deletedFilesCount 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 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.Object