public interface ManifestFile
Modifier and Type | Interface and Description |
---|---|
static interface |
ManifestFile.PartitionFieldSummary
Summarizes the values of one partition field stored in a manifest file.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
addedFilesCount() |
ManifestFile |
copy()
Copies this
manifest file . |
java.lang.Integer |
deletedFilesCount() |
java.lang.Integer |
existingFilesCount() |
default boolean |
hasAddedFiles()
Returns true if the manifest contains ADDED entries or if the count is not known.
|
default boolean |
hasDeletedFiles()
Returns true if the manifest contains DELETED entries or if the count is not known.
|
default boolean |
hasExistingFiles()
Returns true if the manifest contains EXISTING entries or if the count is not known.
|
long |
length() |
java.util.List<ManifestFile.PartitionFieldSummary> |
partitions()
Returns a list of
partition field summaries . |
int |
partitionSpecId() |
java.lang.String |
path() |
static Schema |
schema() |
java.lang.Long |
snapshotId() |
static final Schema SCHEMA
static Schema schema()
java.lang.String path()
long length()
int partitionSpecId()
PartitionSpec
used to write the manifest filejava.lang.Long snapshotId()
default boolean hasAddedFiles()
java.lang.Integer addedFilesCount()
default boolean hasExistingFiles()
java.lang.Integer existingFilesCount()
default boolean hasDeletedFiles()
java.lang.Integer deletedFilesCount()
java.util.List<ManifestFile.PartitionFieldSummary> partitions()
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.
ManifestFile copy()
manifest file
. Readers can reuse manifest file instances; use
this method to make defensive copies.