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 |
KEY_METADATA |
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()
Returns the number of files with status ADDED in the manifest file.
|
java.lang.Long |
addedRowsCount()
Returns the total number of rows in all 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 . |
java.lang.Integer |
deletedFilesCount()
Returns the number of files with status DELETED in the manifest file.
|
java.lang.Long |
deletedRowsCount()
Returns the total number of rows in all files with status DELETED in the manifest file.
|
java.lang.Integer |
existingFilesCount()
Returns the number of files with status EXISTING in the manifest file.
|
java.lang.Long |
existingRowsCount()
Returns the total number of rows in all files with status EXISTING in the manifest file.
|
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.
|
default java.nio.ByteBuffer |
keyMetadata()
Returns metadata about how this manifest file is encrypted, or null if the file is stored in
plain text.
|
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.
|
static Schema |
schema() |
long |
sequenceNumber()
Returns the sequence number of the commit that added the manifest file.
|
java.lang.Long |
snapshotId()
Returns iD of the snapshot that added the manifest file to table metadata.
|
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 Types.NestedField KEY_METADATA
static final Schema SCHEMA
static Schema schema()
java.lang.String path()
long length()
int partitionSpecId()
PartitionSpec
used to write the manifest file.ManifestContent 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.
default java.nio.ByteBuffer keyMetadata()
ManifestFile copy()
manifest file
. Readers can reuse manifest file instances; use
this method to make defensive copies.