Class TableSnapshot
- java.lang.Object
-
- io.trino.plugin.deltalake.transactionlog.TableSnapshot
-
public class TableSnapshot extends Object
The current state of a Delta table. It's defined by its latest checkpoint and the subsequent transactions not included in the checkpoint.
-
-
Method Summary
-
-
-
Method Detail
-
load
public static TableSnapshot load(SchemaTableName table, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, ParquetReaderOptions parquetReaderOptions, boolean checkpointRowStatisticsWritingEnabled) throws IOException
- Throws:
IOException
-
getUpdatedSnapshot
public Optional<TableSnapshot> getUpdatedSnapshot(org.apache.hadoop.fs.FileSystem fileSystem) throws IOException
- Throws:
IOException
-
getVersion
public long getVersion()
-
getTable
public SchemaTableName getTable()
-
getCachedMetadata
public Optional<MetadataEntry> getCachedMetadata()
-
getTableLocation
public org.apache.hadoop.fs.Path getTableLocation()
-
setCachedMetadata
public void setCachedMetadata(Optional<MetadataEntry> cachedMetadata)
-
getJsonTransactionLogEntries
public List<DeltaLakeTransactionLogEntry> getJsonTransactionLogEntries()
-
getCheckpointTransactionLogEntries
public Stream<DeltaLakeTransactionLogEntry> getCheckpointTransactionLogEntries(ConnectorSession session, Set<CheckpointEntryIterator.EntryType> entryTypes, CheckpointSchemaManager checkpointSchemaManager, TypeManager typeManager, org.apache.hadoop.fs.FileSystem fileSystem, HdfsEnvironment hdfsEnvironment, FileFormatDataSourceStats stats) throws IOException
- Throws:
IOException
-
-