Class TableSnapshot
java.lang.Object
io.trino.plugin.deltalake.transactionlog.TableSnapshot
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
Modifier and TypeMethodDescriptiongetCheckpointTransactionLogEntries(ConnectorSession session, Set<CheckpointEntryIterator.EntryType> entryTypes, CheckpointSchemaManager checkpointSchemaManager, TypeManager typeManager, TrinoFileSystem fileSystem, FileFormatDataSourceStats stats) getTable()org.apache.hadoop.fs.PathgetUpdatedSnapshot(TrinoFileSystem fileSystem) longstatic TableSnapshotload(SchemaTableName table, TrinoFileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, ParquetReaderOptions parquetReaderOptions, boolean checkpointRowStatisticsWritingEnabled, int domainCompactionThreshold) voidsetCachedMetadata(Optional<MetadataEntry> cachedMetadata)
-
Method Details
-
load
public static TableSnapshot load(SchemaTableName table, TrinoFileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, ParquetReaderOptions parquetReaderOptions, boolean checkpointRowStatisticsWritingEnabled, int domainCompactionThreshold) throws IOException - Throws:
IOException
-
getUpdatedSnapshot
- Throws:
IOException
-
getVersion
public long getVersion() -
getTable
-
getCachedMetadata
-
getTableLocation
public org.apache.hadoop.fs.Path getTableLocation() -
setCachedMetadata
-
getJsonTransactionLogEntries
-
getCheckpointTransactionLogEntries
public Stream<DeltaLakeTransactionLogEntry> getCheckpointTransactionLogEntries(ConnectorSession session, Set<CheckpointEntryIterator.EntryType> entryTypes, CheckpointSchemaManager checkpointSchemaManager, TypeManager typeManager, TrinoFileSystem fileSystem, FileFormatDataSourceStats stats) throws IOException - Throws:
IOException
-
getLastCheckpointVersion
-