Interface Table
- All Known Implementing Classes:
- AllDataFilesTable,- AllDeleteFilesTable,- AllEntriesTable,- AllFilesTable,- AllManifestsTable,- BaseMetadataTable,- BaseTable,- BaseTransaction.TransactionTable,- DataFilesTable,- DeleteFilesTable,- FilesTable,- HistoryTable,- ManifestEntriesTable,- ManifestsTable,- MetadataLogEntriesTable,- PartitionsTable,- PositionDeletesTable,- RefsTable,- SerializableTable,- SerializableTable.SerializableMetadataTable,- SerializableTableWithSize,- SerializableTableWithSize.SerializableMetadataTableWithSize,- SnapshotsTable
- 
Method SummaryModifier and TypeMethodDescriptionGet the currentsnapshotfor this table, or null if there are no snapshots.Returns anEncryptionManagerto encrypt and decrypt data files.Create a newexpire APIto expire snapshots in this table and commit.history()Get the snapshot history of this table.io()Returns aFileIOto read and write table data and metadata files.location()Return the table's base location.Returns aLocationProviderto provide locations for new data files.Create a newmanage snapshots APIto manage snapshots in this table and commit.default Stringname()Return the full name for this table.Create a newappend APIto add files to this table and commit.default BatchScanCreate a newbatch scanfor this table.Create a newdelete APIto delete files in this table and commit.default AppendFilesCreate a newappend APIto add files to this table and commit.default IncrementalAppendScanCreate a newscanfor this table.default IncrementalChangelogScanCreate a newIncrementalChangelogScanfor this table.Create a newoverwrite APIto overwrite files by a filter expression.Not recommended: Create a newreplace partitions APIto dynamically overwrite partitions in the table with new data.Create a newrewrite APIto replace files in this table and commit.Create a newrow-level delta APIto remove or replace rows in existing data files.newScan()Create a newscanfor this table.Create a newtransaction APIto commit multiple table operations at once.default List<PartitionStatisticsFile>Returns the current partition statistics files for the table.Return a map of string properties for this table.voidrefresh()Refresh the current table metadata.refs()Returns the current refs for the tableCreate a newReplaceSortOrderto set the table sort order and commit the change.Create a newrewrite manifests APIto replace manifests for this table and commit.schema()Return theschemafor this table.schemas()Return a map ofschemafor this table.snapshot(long snapshotId) Get thesnapshotof this table with the given id, or null if there is no matching snapshot.default SnapshotReturns the snapshot referenced by the given name or null if no such reference exists.Get thesnapshotsof this table.Return thesort orderfor this table.Return a map of sort order IDs tosort ordersfor this table.spec()Return thepartition specfor this table.specs()Return a map ofpartition specsfor this table.Returns the current statistics files for the tableCreate a newUpdateLocationto update table location and commit the changes.default UpdatePartitionStatisticsCreate a newupdate partition statistics APIto add or remove partition statistics files in this table.Create a newUpdatePropertiesto update table properties and commit the changes.Create a newUpdateSchemato alter the columns of this table and commit the change.Create a newUpdatePartitionSpecto alter the partition spec of this table and commit the change.default UpdateStatisticsCreate a newupdate table statistics APIto add or remove statistics files in this table.default UUIDuuid()Returns the UUID of the table
- 
Method Details- 
nameReturn the full name for this table.- Returns:
- this table's name
 
- 
refreshvoid refresh()Refresh the current table metadata.
- 
newScanTableScan newScan()Create a newscanfor this table.Once a table scan is created, it can be refined to project columns and filter data. - Returns:
- a table scan for this table
 
- 
newBatchScanCreate a newbatch scanfor this table.Once a batch scan is created, it can be refined to project columns and filter data. - Returns:
- a batch scan for this table
 
- 
newIncrementalAppendScanCreate a newscanfor this table.Once a scan is created, it can be refined to project columns and filter data. - Returns:
- an incremental scan for appends only snapshots
 
- 
newIncrementalChangelogScanCreate a newIncrementalChangelogScanfor this table.Once a scan is created, it can be refined to project columns and filter data. - Returns:
- an incremental changelog scan
 
- 
schemaSchema schema()Return theschemafor this table.- Returns:
- this table's schema
 
- 
schemasReturn a map ofschemafor this table.- Returns:
- this table's schema map
 
- 
specPartitionSpec spec()Return thepartition specfor this table.- Returns:
- this table's partition spec
 
- 
specsMap<Integer,PartitionSpec> specs()Return a map ofpartition specsfor this table.- Returns:
- this table's partition specs map
 
- 
sortOrderSortOrder sortOrder()Return thesort orderfor this table.- Returns:
- this table's sort order
 
- 
sortOrdersReturn a map of sort order IDs tosort ordersfor this table.- Returns:
- this table's sort orders map
 
- 
propertiesReturn a map of string properties for this table.- Returns:
- this table's properties map
 
- 
locationString location()Return the table's base location.- Returns:
- this table's location
 
- 
currentSnapshotSnapshot currentSnapshot()Get the currentsnapshotfor this table, or null if there are no snapshots.- Returns:
- the current table Snapshot.
 
- 
snapshotGet thesnapshotof this table with the given id, or null if there is no matching snapshot.- Returns:
- the Snapshotwith the given id.
 
- 
snapshotsGet thesnapshotsof this table.- Returns:
- an Iterable of snapshots of this table.
 
- 
historyList<HistoryEntry> history()Get the snapshot history of this table.- Returns:
- a list of history entries
 
- 
updateSchemaUpdateSchema updateSchema()Create a newUpdateSchemato alter the columns of this table and commit the change.- Returns:
- a new UpdateSchema
 
- 
updateSpecUpdatePartitionSpec updateSpec()Create a newUpdatePartitionSpecto alter the partition spec of this table and commit the change.- Returns:
- a new UpdatePartitionSpec
 
- 
updatePropertiesUpdateProperties updateProperties()Create a newUpdatePropertiesto update table properties and commit the changes.- Returns:
- a new UpdateProperties
 
- 
replaceSortOrderReplaceSortOrder replaceSortOrder()Create a newReplaceSortOrderto set the table sort order and commit the change.- Returns:
- a new ReplaceSortOrder
 
- 
updateLocationUpdateLocation updateLocation()Create a newUpdateLocationto update table location and commit the changes.- Returns:
- a new UpdateLocation
 
- 
newAppendAppendFiles newAppend()Create a newappend APIto add files to this table and commit.- Returns:
- a new AppendFiles
 
- 
newFastAppendCreate a newappend APIto add files to this table and commit.Using this method signals to the underlying implementation that the append should not perform extra work in order to commit quickly. Fast appends are not recommended for normal writes because the fast commit may cause split planning to slow down over time. Implementations may not support fast appends, in which case this will return the same appender as newAppend().- Returns:
- a new AppendFiles
 
- 
newRewriteRewriteFiles newRewrite()Create a newrewrite APIto replace files in this table and commit.- Returns:
- a new RewriteFiles
 
- 
rewriteManifestsRewriteManifests rewriteManifests()Create a newrewrite manifests APIto replace manifests for this table and commit.- Returns:
- a new RewriteManifests
 
- 
newOverwriteOverwriteFiles newOverwrite()Create a newoverwrite APIto overwrite files by a filter expression.- Returns:
- a new OverwriteFiles
 
- 
newRowDeltaRowDelta newRowDelta()Create a newrow-level delta APIto remove or replace rows in existing data files.- Returns:
- a new RowDelta
 
- 
newReplacePartitionsReplacePartitions newReplacePartitions()Not recommended: Create a newreplace partitions APIto dynamically overwrite partitions in the table with new data.This is provided to implement SQL compatible with Hive table operations but is not recommended. Instead, use the overwrite APIto explicitly overwrite data.- Returns:
- a new ReplacePartitions
 
- 
newDeleteDeleteFiles newDelete()Create a newdelete APIto delete files in this table and commit.- Returns:
- a new DeleteFiles
 
- 
updateStatisticsCreate a newupdate table statistics APIto add or remove statistics files in this table.- Returns:
- a new UpdateStatistics
 
- 
updatePartitionStatisticsCreate a newupdate partition statistics APIto add or remove partition statistics files in this table.- Returns:
- a new UpdatePartitionStatistics
 
- 
expireSnapshotsExpireSnapshots expireSnapshots()Create a newexpire APIto expire snapshots in this table and commit.- Returns:
- a new ExpireSnapshots
 
- 
manageSnapshotsManageSnapshots manageSnapshots()Create a newmanage snapshots APIto manage snapshots in this table and commit.- Returns:
- a new ManageSnapshots
 
- 
newTransactionTransaction newTransaction()Create a newtransaction APIto commit multiple table operations at once.- Returns:
- a new Transaction
 
- 
ioFileIO io()Returns aFileIOto read and write table data and metadata files.
- 
encryptionEncryptionManager encryption()Returns anEncryptionManagerto encrypt and decrypt data files.
- 
locationProviderLocationProvider locationProvider()Returns aLocationProviderto provide locations for new data files.
- 
statisticsFilesList<StatisticsFile> statisticsFiles()Returns the current statistics files for the table- Returns:
- the current statistics files for the table
 
- 
partitionStatisticsFilesReturns the current partition statistics files for the table.
- 
refsMap<String,SnapshotRef> refs()Returns the current refs for the table- Returns:
- the current refs for the table
 
- 
uuidReturns the UUID of the table- Returns:
- the UUID of the table
 
- 
snapshotReturns the snapshot referenced by the given name or null if no such reference exists.- Returns:
- the snapshot which is referenced by the given name or null if no such reference exists.
 
 
-