Package org.apache.iceberg
Class RefsTable
java.lang.Object
org.apache.iceberg.BaseMetadataTable
org.apache.iceberg.RefsTable
- All Implemented Interfaces:
Serializable,Table
A
Table implementation that exposes a table's known snapshot references as rows.
SnapshotRefType stores the valid snapshot references type.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newexpire APIto expire snapshots in this table and commit.Create a newmanage snapshots APIto manage snapshots in this table and commit.Create a newappend APIto add files to this table and commit.Create a newdelete APIto delete files in this table and commit.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.Create 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.Create a newUpdateLocationto update table location and commit the changes.Create 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.Create a newupdate table statistics APIto add or remove statistics files in this table.Methods inherited from class org.apache.iceberg.BaseMetadataTable
currentSnapshot, encryption, history, io, location, locationProvider, name, partitionStatisticsFiles, properties, refresh, refs, schemas, snapshot, snapshots, sortOrder, sortOrders, spec, specs, statisticsFiles, table, toString, uuidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iceberg.Table
newBatchScan, newFastAppend, newIncrementalAppendScan, newIncrementalChangelogScan, snapshot
-
Method Details
-
newScan
Description copied from interface:TableCreate 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
-
schema
Description copied from interface:TableReturn theschemafor this table.- Returns:
- this table's schema
-
updateSchema
Description copied from interface:TableCreate a newUpdateSchemato alter the columns of this table and commit the change.- Specified by:
updateSchemain interfaceTable- Returns:
- a new
UpdateSchema
-
updateSpec
Description copied from interface:TableCreate a newUpdatePartitionSpecto alter the partition spec of this table and commit the change.- Specified by:
updateSpecin interfaceTable- Returns:
- a new
UpdatePartitionSpec
-
updateProperties
Description copied from interface:TableCreate a newUpdatePropertiesto update table properties and commit the changes.- Specified by:
updatePropertiesin interfaceTable- Returns:
- a new
UpdateProperties
-
replaceSortOrder
Description copied from interface:TableCreate a newReplaceSortOrderto set the table sort order and commit the change.- Specified by:
replaceSortOrderin interfaceTable- Returns:
- a new
ReplaceSortOrder
-
updateLocation
Description copied from interface:TableCreate a newUpdateLocationto update table location and commit the changes.- Specified by:
updateLocationin interfaceTable- Returns:
- a new
UpdateLocation
-
newAppend
Description copied from interface:TableCreate a newappend APIto add files to this table and commit.- Specified by:
newAppendin interfaceTable- Returns:
- a new
AppendFiles
-
newRewrite
Description copied from interface:TableCreate a newrewrite APIto replace files in this table and commit.- Specified by:
newRewritein interfaceTable- Returns:
- a new
RewriteFiles
-
rewriteManifests
Description copied from interface:TableCreate a newrewrite manifests APIto replace manifests for this table and commit.- Specified by:
rewriteManifestsin interfaceTable- Returns:
- a new
RewriteManifests
-
newOverwrite
Description copied from interface:TableCreate a newoverwrite APIto overwrite files by a filter expression.- Specified by:
newOverwritein interfaceTable- Returns:
- a new
OverwriteFiles
-
newRowDelta
Description copied from interface:TableCreate a newrow-level delta APIto remove or replace rows in existing data files.- Specified by:
newRowDeltain interfaceTable- Returns:
- a new
RowDelta
-
newReplacePartitions
Description copied from interface:TableNot 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.- Specified by:
newReplacePartitionsin interfaceTable- Returns:
- a new
ReplacePartitions
-
newDelete
Description copied from interface:TableCreate a newdelete APIto delete files in this table and commit.- Specified by:
newDeletein interfaceTable- Returns:
- a new
DeleteFiles
-
updateStatistics
Description copied from interface:TableCreate a newupdate table statistics APIto add or remove statistics files in this table.- Specified by:
updateStatisticsin interfaceTable- Returns:
- a new
UpdateStatistics
-
updatePartitionStatistics
Description copied from interface:TableCreate a newupdate partition statistics APIto add or remove partition statistics files in this table.- Specified by:
updatePartitionStatisticsin interfaceTable- Returns:
- a new
UpdatePartitionStatistics
-
expireSnapshots
Description copied from interface:TableCreate a newexpire APIto expire snapshots in this table and commit.- Specified by:
expireSnapshotsin interfaceTable- Returns:
- a new
ExpireSnapshots
-
manageSnapshots
Description copied from interface:TableCreate a newmanage snapshots APIto manage snapshots in this table and commit.- Specified by:
manageSnapshotsin interfaceTable- Returns:
- a new
ManageSnapshots
-
newTransaction
Description copied from interface:TableCreate a newtransaction APIto commit multiple table operations at once.- Specified by:
newTransactionin interfaceTable- Returns:
- a new
Transaction
-