public interface Snapshot
Snapshot
provides APIs to access the Delta table state (such as table metadata, active
files) at some version.
See Delta Transaction Log Protocol for more details about the transaction logs.
Modifier and Type | Method and Description |
---|---|
java.util.List<AddFile> |
getAllFiles() |
Metadata |
getMetadata() |
long |
getVersion() |
CloseableIterator<RowRecord> |
open()
Creates a
CloseableIterator which can iterate over data belonging to this snapshot. |
DeltaScan |
scan() |
DeltaScan |
scan(Expression predicate) |
DeltaScan scan(Expression predicate)
predicate
- the predicate to be used to filter the files in this snapshot.DeltaScan
of the files in this snapshot matching the pushed portion of
predicate
java.util.List<AddFile> getAllFiles()
Metadata getMetadata()
long getVersion()
CloseableIterator<RowRecord> open()
CloseableIterator
which can iterate over data belonging to this snapshot.
It provides no iteration ordering guarantee among data.CloseableIterator
to iterate over data