public interface Snapshot extends Filterable<FilteredSnapshot>
A snapshot consist of one or more file manifests, and the complete table contents is the union of all the data files in those manifests.
Snapshots are created by table operations, like AppendFiles
and RewriteFiles
.
ALL_COLUMNS
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<DataFile> |
addedFiles()
Return all files added to the table in this snapshot.
|
java.lang.Iterable<DataFile> |
deletedFiles()
Return all files deleted from the table in this snapshot.
|
java.util.List<java.lang.String> |
manifests()
Return the location of all manifests in this snapshot.
|
long |
snapshotId()
Return this snapshot's ID.
|
long |
timestampMillis()
Return this snapshot's timestamp.
|
filterPartitions, filterRows, select, select
long snapshotId()
long timestampMillis()
This timestamp is the same as those produced by System.currentTimeMillis()
.
java.util.List<java.lang.String> manifests()
The current table is made of the union of the data files in these manifests.
java.lang.Iterable<DataFile> addedFiles()
The files returned include the following columns: file_path, file_format, partition, record_count, and file_size_in_bytes. Other columns will be null.
java.lang.Iterable<DataFile> deletedFiles()
The files returned include the following columns: file_path, file_format, partition, record_count, and file_size_in_bytes. Other columns will be null.