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 | Field and Description |
---|---|
static Types.NestedField |
ADDED_FILES_COUNT |
static Types.NestedField |
ADDED_ROWS_COUNT |
static Types.NestedField |
DELETED_FILES_COUNT |
static Types.NestedField |
DELETED_ROWS_COUNT |
static Types.NestedField |
EXISTING_FILES_COUNT |
static Types.NestedField |
EXISTING_ROWS_COUNT |
static Types.NestedField |
LENGTH |
static Types.NestedField |
MANIFEST_CONTENT |
static Types.NestedField |
MIN_SEQUENCE_NUMBER |
static Types.NestedField |
PARTITION_SUMMARIES |
static Types.StructType |
PARTITION_SUMMARY_TYPE |
static Types.NestedField |
PATH |
static Schema |
SCHEMA |
static Types.NestedField |
SEQUENCE_NUMBER |
static Types.NestedField |
SNAPSHOT_ID |
static Types.NestedField |
SPEC_ID |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
addedFilesCount() |
java.lang.Long |
addedRowsCount() |
ManifestContent |
content() |
ManifestFile |
copy()
Copies this
manifest file . |
java.lang.Integer |
deletedFilesCount() |
java.lang.Long |
deletedRowsCount() |
java.lang.Integer |
existingFilesCount() |
java.lang.Long |
existingRowsCount() |
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() |
long |
minSequenceNumber() |
java.util.List<ManifestFile.PartitionFieldSummary> |
partitions()
Returns a list of
partition field summaries . |
int |
partitionSpecId() |
java.lang.String |
path() |
static Schema |
schema() |
long |
sequenceNumber() |
java.lang.Long |
snapshotId() |
static final Types.NestedField PATH
static final Types.NestedField LENGTH
static final Types.NestedField SPEC_ID
static final Types.NestedField MANIFEST_CONTENT
static final Types.NestedField SEQUENCE_NUMBER
static final Types.NestedField MIN_SEQUENCE_NUMBER
static final Types.NestedField SNAPSHOT_ID
static final Types.NestedField ADDED_FILES_COUNT
static final Types.NestedField EXISTING_FILES_COUNT
static final Types.NestedField DELETED_FILES_COUNT
static final Types.NestedField ADDED_ROWS_COUNT
static final Types.NestedField EXISTING_ROWS_COUNT
static final Types.NestedField DELETED_ROWS_COUNT
static final Types.StructType PARTITION_SUMMARY_TYPE
static final Types.NestedField PARTITION_SUMMARIES
static final Schema SCHEMA
static Schema schema()
java.lang.String path()
long length()
int partitionSpecId()
PartitionSpec
used to write the manifest fileManifestContent content()
long sequenceNumber()
long minSequenceNumber()
java.lang.Long snapshotId()
default boolean hasAddedFiles()
java.lang.Integer addedFilesCount()
java.lang.Long addedRowsCount()
default boolean hasExistingFiles()
java.lang.Integer existingFilesCount()
java.lang.Long existingRowsCount()
default boolean hasDeletedFiles()
java.lang.Integer deletedFilesCount()
java.lang.Long deletedRowsCount()
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.