@Evolving public interface Snapshot
Modifier and Type | Method and Description |
---|---|
java.util.List<String> |
getPartitionColumnNames(Engine engine)
Get the names of the partition columns in the Delta table at this snapshot.
|
ScanBuilder |
getScanBuilder(Engine engine)
Create a scan builder to construct a
Scan to read data from this snapshot. |
StructType |
getSchema(Engine engine)
Get the schema of the table at this snapshot.
|
long |
getTimestamp(Engine engine)
Get the timestamp (in milliseconds since the Unix epoch) of the latest commit in this snapshot.
|
long |
getVersion(Engine engine)
Get the version of this snapshot in the table.
|
long getVersion(Engine engine)
engine
- Engine
instance to use in Delta Kernel.java.util.List<String> getPartitionColumnNames(Engine engine)
The partition column names are returned in the order they are defined in the Delta table schema. If the table does not define any partition columns, this method returns an empty list.
engine
- Engine
instance to use in Delta Kernel.long getTimestamp(Engine engine)
engine
- the engine to use for IO operationsStructType getSchema(Engine engine)
engine
- Engine
instance to use in Delta Kernel.ScanBuilder getScanBuilder(Engine engine)
Scan
to read data from this snapshot.engine
- Engine
instance to use in Delta Kernel.ScanBuilder