Package org.apache.iceberg
Class RefsTable
- java.lang.Object
- 
- org.apache.iceberg.BaseMetadataTable
- 
- org.apache.iceberg.RefsTable
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- HasTableOperations,- Table
 
 public class RefsTable extends BaseMetadataTable ATableimplementation that exposes a table's known snapshot references as rows.SnapshotRefTypestores the valid snapshot references type.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpireSnapshotsexpireSnapshots()Create a newexpire APIto manage snapshots in this table and commit.ManageSnapshotsmanageSnapshots()Create a newmanage snapshots APIto manage snapshots in this table and commit.AppendFilesnewAppend()Create a newappend APIto add files to this table and commit.DeleteFilesnewDelete()Create a newdelete APIto replace files in this table and commit.OverwriteFilesnewOverwrite()Create a newoverwrite APIto overwrite files by a filter expression.ReplacePartitionsnewReplacePartitions()Not recommended: Create a newreplace partitions APIto dynamically overwrite partitions in the table with new data.RewriteFilesnewRewrite()Create a newrewrite APIto replace files in this table and commit.RowDeltanewRowDelta()Create a newrow-level delta APIto remove or replace rows in existing data files.TableScannewScan()Create a newscanfor this table.TransactionnewTransaction()Create a newtransaction APIto commit multiple table operations at once.ReplaceSortOrderreplaceSortOrder()Create a newReplaceSortOrderto set the table sort order and commit the change.RewriteManifestsrewriteManifests()Create a newrewrite manifests APIto replace manifests for this table and commit.Schemaschema()Return theschemafor this table.UpdateLocationupdateLocation()Create a newUpdateLocationto update table location and commit the changes.UpdatePropertiesupdateProperties()Create a newUpdatePropertiesto update table properties and commit the changes.UpdateSchemaupdateSchema()Create a newUpdateSchemato alter the columns of this table and commit the change.UpdatePartitionSpecupdateSpec()Create a newUpdatePartitionSpecto alter the partition spec of this table and commit the change.UpdateStatisticsupdateStatistics()Create a newupdate table statistics APIto add or remove statistics files in this table.- 
Methods inherited from class org.apache.iceberg.BaseMetadataTablecurrentSnapshot, encryption, history, io, location, locationProvider, name, operations, properties, refresh, refs, schemas, snapshot, snapshots, sortOrder, sortOrders, spec, specs, statisticsFiles, table, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.iceberg.TablenewBatchScan, newFastAppend, newIncrementalAppendScan, newIncrementalChangelogScan, snapshot
 
- 
 
- 
- 
- 
Method Detail- 
newScanpublic TableScan 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
 
 - 
schemapublic Schema schema() Description copied from interface:TableReturn theschemafor this table.- Returns:
- this table's schema
 
 - 
updateSchemapublic UpdateSchema updateSchema() Description copied from interface:TableCreate a newUpdateSchemato alter the columns of this table and commit the change.- Specified by:
- updateSchemain interface- Table
- Returns:
- a new UpdateSchema
 
 - 
updateSpecpublic UpdatePartitionSpec updateSpec() Description copied from interface:TableCreate a newUpdatePartitionSpecto alter the partition spec of this table and commit the change.- Specified by:
- updateSpecin interface- Table
- Returns:
- a new UpdatePartitionSpec
 
 - 
updatePropertiespublic UpdateProperties updateProperties() Description copied from interface:TableCreate a newUpdatePropertiesto update table properties and commit the changes.- Specified by:
- updatePropertiesin interface- Table
- Returns:
- a new UpdateProperties
 
 - 
replaceSortOrderpublic ReplaceSortOrder replaceSortOrder() Description copied from interface:TableCreate a newReplaceSortOrderto set the table sort order and commit the change.- Specified by:
- replaceSortOrderin interface- Table
- Returns:
- a new ReplaceSortOrder
 
 - 
updateLocationpublic UpdateLocation updateLocation() Description copied from interface:TableCreate a newUpdateLocationto update table location and commit the changes.- Specified by:
- updateLocationin interface- Table
- Returns:
- a new UpdateLocation
 
 - 
newAppendpublic AppendFiles newAppend() Description copied from interface:TableCreate a newappend APIto add files to this table and commit.- Specified by:
- newAppendin interface- Table
- Returns:
- a new AppendFiles
 
 - 
newRewritepublic RewriteFiles newRewrite() Description copied from interface:TableCreate a newrewrite APIto replace files in this table and commit.- Specified by:
- newRewritein interface- Table
- Returns:
- a new RewriteFiles
 
 - 
rewriteManifestspublic RewriteManifests rewriteManifests() Description copied from interface:TableCreate a newrewrite manifests APIto replace manifests for this table and commit.- Specified by:
- rewriteManifestsin interface- Table
- Returns:
- a new RewriteManifests
 
 - 
newOverwritepublic OverwriteFiles newOverwrite() Description copied from interface:TableCreate a newoverwrite APIto overwrite files by a filter expression.- Specified by:
- newOverwritein interface- Table
- Returns:
- a new OverwriteFiles
 
 - 
newRowDeltapublic RowDelta newRowDelta() Description copied from interface:TableCreate a newrow-level delta APIto remove or replace rows in existing data files.- Specified by:
- newRowDeltain interface- Table
- Returns:
- a new RowDelta
 
 - 
newReplacePartitionspublic ReplacePartitions 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 interface- Table
- Returns:
- a new ReplacePartitions
 
 - 
newDeletepublic DeleteFiles newDelete() Description copied from interface:TableCreate a newdelete APIto replace files in this table and commit.- Specified by:
- newDeletein interface- Table
- Returns:
- a new DeleteFiles
 
 - 
updateStatisticspublic UpdateStatistics updateStatistics() Description copied from interface:TableCreate a newupdate table statistics APIto add or remove statistics files in this table.- Specified by:
- updateStatisticsin interface- Table
- Returns:
- a new UpdateStatistics
 
 - 
expireSnapshotspublic ExpireSnapshots expireSnapshots() Description copied from interface:TableCreate a newexpire APIto manage snapshots in this table and commit.- Specified by:
- expireSnapshotsin interface- Table
- Returns:
- a new ExpireSnapshots
 
 - 
manageSnapshotspublic ManageSnapshots manageSnapshots() Description copied from interface:TableCreate a newmanage snapshots APIto manage snapshots in this table and commit.- Specified by:
- manageSnapshotsin interface- Table
- Returns:
- a new ManageSnapshots
 
 - 
newTransactionpublic Transaction newTransaction() Description copied from interface:TableCreate a newtransaction APIto commit multiple table operations at once.- Specified by:
- newTransactionin interface- Table
- Returns:
- a new Transaction
 
 
- 
 
-