public class PartitionsTable extends BaseMetadataTable
Table
implementation that exposes a table's partitions as rows.Modifier and Type | Method and Description |
---|---|
ExpireSnapshots |
expireSnapshots()
Create a new
expire API to manage snapshots in this table and commit. |
ManageSnapshots |
manageSnapshots()
Create a new
manage snapshots API to manage snapshots in this table and
commit. |
AppendFiles |
newAppend()
Create a new
append API to add files to this table and commit. |
DeleteFiles |
newDelete()
Create a new
delete API to replace files in this table and commit. |
OverwriteFiles |
newOverwrite()
Create a new
overwrite API to overwrite files by a filter expression. |
ReplacePartitions |
newReplacePartitions()
Not recommended: Create a new
replace partitions API to dynamically
overwrite partitions in the table with new data. |
RewriteFiles |
newRewrite()
Create a new
rewrite API to replace files in this table and commit. |
RowDelta |
newRowDelta()
Create a new
row-level delta API to remove or replace rows in existing data
files. |
TableScan |
newScan()
Create a new
scan for this table. |
Transaction |
newTransaction()
Create a new
transaction API to commit multiple table operations at once. |
ReplaceSortOrder |
replaceSortOrder()
Create a new
ReplaceSortOrder to set the table sort order and commit the change. |
RewriteManifests |
rewriteManifests()
Create a new
rewrite manifests API to replace manifests for this table
and commit. |
Schema |
schema()
Return the
schema for this table. |
UpdateLocation |
updateLocation()
Create a new
UpdateLocation to update table location and commit the changes. |
UpdatePartitionStatistics |
updatePartitionStatistics()
Create a new
update partition statistics API to add or remove
partition statistics files in this table. |
UpdateProperties |
updateProperties()
Create a new
UpdateProperties to update table properties and commit the changes. |
UpdateSchema |
updateSchema()
Create a new
UpdateSchema to alter the columns of this table and commit the change. |
UpdatePartitionSpec |
updateSpec()
Create a new
UpdatePartitionSpec to alter the partition spec of this table and commit
the change. |
UpdateStatistics |
updateStatistics()
Create a new
update table statistics API to add or remove statistics
files in this table. |
currentSnapshot, encryption, history, io, location, locationProvider, name, partitionStatisticsFiles, properties, refresh, refs, schemas, snapshot, snapshots, sortOrder, sortOrders, spec, specs, statisticsFiles, table, toString, uuid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newBatchScan, newFastAppend, newIncrementalAppendScan, newIncrementalChangelogScan, snapshot
public TableScan newScan()
Table
scan
for this table.
Once a table scan is created, it can be refined to project columns and filter data.
public Schema schema()
Table
schema
for this table.public UpdateSchema updateSchema()
Table
UpdateSchema
to alter the columns of this table and commit the change.updateSchema
in interface Table
UpdateSchema
public UpdatePartitionSpec updateSpec()
Table
UpdatePartitionSpec
to alter the partition spec of this table and commit
the change.updateSpec
in interface Table
UpdatePartitionSpec
public UpdateProperties updateProperties()
Table
UpdateProperties
to update table properties and commit the changes.updateProperties
in interface Table
UpdateProperties
public ReplaceSortOrder replaceSortOrder()
Table
ReplaceSortOrder
to set the table sort order and commit the change.replaceSortOrder
in interface Table
ReplaceSortOrder
public UpdateLocation updateLocation()
Table
UpdateLocation
to update table location and commit the changes.updateLocation
in interface Table
UpdateLocation
public AppendFiles newAppend()
Table
append API
to add files to this table and commit.newAppend
in interface Table
AppendFiles
public RewriteFiles newRewrite()
Table
rewrite API
to replace files in this table and commit.newRewrite
in interface Table
RewriteFiles
public RewriteManifests rewriteManifests()
Table
rewrite manifests API
to replace manifests for this table
and commit.rewriteManifests
in interface Table
RewriteManifests
public OverwriteFiles newOverwrite()
Table
overwrite API
to overwrite files by a filter expression.newOverwrite
in interface Table
OverwriteFiles
public RowDelta newRowDelta()
Table
row-level delta API
to remove or replace rows in existing data
files.newRowDelta
in interface Table
RowDelta
public ReplacePartitions newReplacePartitions()
Table
replace partitions API
to 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 API
to explicitly overwrite
data.
newReplacePartitions
in interface Table
ReplacePartitions
public DeleteFiles newDelete()
Table
delete API
to replace files in this table and commit.newDelete
in interface Table
DeleteFiles
public UpdateStatistics updateStatistics()
Table
update table statistics API
to add or remove statistics
files in this table.updateStatistics
in interface Table
UpdateStatistics
public UpdatePartitionStatistics updatePartitionStatistics()
Table
update partition statistics API
to add or remove
partition statistics files in this table.updatePartitionStatistics
in interface Table
UpdatePartitionStatistics
public ExpireSnapshots expireSnapshots()
Table
expire API
to manage snapshots in this table and commit.expireSnapshots
in interface Table
ExpireSnapshots
public ManageSnapshots manageSnapshots()
Table
manage snapshots API
to manage snapshots in this table and
commit.manageSnapshots
in interface Table
ManageSnapshots
public Transaction newTransaction()
Table
transaction API
to commit multiple table operations at once.newTransaction
in interface Table
Transaction