Package org.apache.beam.sdk.io.iceberg
Class SideInputTable
java.lang.Object
org.apache.beam.sdk.io.iceberg.SideInputTable
- All Implemented Interfaces:
org.apache.iceberg.Table
A lightweight adapter that implements
Table backed by a SerializableTableSpec.
Delegates declarative metadata (schemas, partition specs, sort orders, properties) and FileIO to the broadcasted SerializableTableSpec, and reconstructs the EncryptionManager from catalog properties or falls back to PlaintextEncryptionManager.
All non-metadata or mutating operations (e.g. refresh(), currentSnapshot(),
newAppend(), updateSchema()) throw UnsupportedOperationException. Table
commits are handled centrally in AppendFilesToTables.
-
Constructor Summary
ConstructorsConstructorDescriptionSideInputTable(SerializableTableSpec spec, Map<String, String> catalogProperties) SideInputTable(SerializableTableSpec spec, Map<String, String> catalogProperties, @Nullable org.apache.hadoop.conf.Configuration hadoopConf) SideInputTable(SerializableTableSpec spec, IcebergCatalogConfig catalogConfig) SideInputTable(SerializableTableSpec spec, org.apache.iceberg.encryption.EncryptionManager encryptionManager) SideInputTable(SerializableTableSpec spec, org.apache.iceberg.encryption.EncryptionManager encryptionManager, @Nullable org.apache.hadoop.conf.Configuration hadoopConf) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.iceberg.Snapshotorg.apache.iceberg.encryption.EncryptionManagerbooleanorg.apache.iceberg.ExpireSnapshotsinthashCode()List<org.apache.iceberg.HistoryEntry> history()org.apache.iceberg.io.FileIOio()location()org.apache.iceberg.io.LocationProviderorg.apache.iceberg.ManageSnapshotsname()org.apache.iceberg.AppendFilesorg.apache.iceberg.DeleteFilesorg.apache.iceberg.AppendFilesorg.apache.iceberg.IncrementalAppendScanorg.apache.iceberg.IncrementalChangelogScanorg.apache.iceberg.OverwriteFilesorg.apache.iceberg.ReplacePartitionsorg.apache.iceberg.RewriteFilesorg.apache.iceberg.RowDeltaorg.apache.iceberg.TableScannewScan()org.apache.iceberg.TransactionList<org.apache.iceberg.PartitionStatisticsFile> voidrefresh()refs()org.apache.iceberg.ReplaceSortOrderorg.apache.iceberg.RewriteManifestsorg.apache.iceberg.Schemaschema()schemas()org.apache.iceberg.Snapshotsnapshot(long snapshotId) Iterable<org.apache.iceberg.Snapshot> org.apache.iceberg.SortOrderorg.apache.iceberg.PartitionSpecspec()specs()List<org.apache.iceberg.StatisticsFile> toString()org.apache.iceberg.UpdateLocationorg.apache.iceberg.UpdatePropertiesorg.apache.iceberg.UpdateSchemaorg.apache.iceberg.UpdatePartitionSpecorg.apache.iceberg.UpdateStatisticsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.iceberg.Table
newBatchScan, newPartitionStatisticsScan, snapshot, updatePartitionStatistics, uuid
-
Constructor Details
-
SideInputTable
-
SideInputTable
-
SideInputTable
public SideInputTable(SerializableTableSpec spec, Map<String, String> catalogProperties, @Nullable org.apache.hadoop.conf.Configuration hadoopConf) -
SideInputTable
public SideInputTable(SerializableTableSpec spec, org.apache.iceberg.encryption.EncryptionManager encryptionManager) -
SideInputTable
public SideInputTable(SerializableTableSpec spec, org.apache.iceberg.encryption.EncryptionManager encryptionManager, @Nullable org.apache.hadoop.conf.Configuration hadoopConf) -
SideInputTable
-
-
Method Details
-
getTableSpec
-
name
- Specified by:
namein interfaceorg.apache.iceberg.Table
-
location
- Specified by:
locationin interfaceorg.apache.iceberg.Table
-
schema
public org.apache.iceberg.Schema schema()- Specified by:
schemain interfaceorg.apache.iceberg.Table
-
schemas
- Specified by:
schemasin interfaceorg.apache.iceberg.Table
-
spec
public org.apache.iceberg.PartitionSpec spec()- Specified by:
specin interfaceorg.apache.iceberg.Table
-
specs
- Specified by:
specsin interfaceorg.apache.iceberg.Table
-
sortOrder
public org.apache.iceberg.SortOrder sortOrder()- Specified by:
sortOrderin interfaceorg.apache.iceberg.Table
-
sortOrders
- Specified by:
sortOrdersin interfaceorg.apache.iceberg.Table
-
properties
- Specified by:
propertiesin interfaceorg.apache.iceberg.Table
-
locationProvider
public org.apache.iceberg.io.LocationProvider locationProvider()- Specified by:
locationProviderin interfaceorg.apache.iceberg.Table
-
io
public org.apache.iceberg.io.FileIO io()- Specified by:
ioin interfaceorg.apache.iceberg.Table
-
encryption
public org.apache.iceberg.encryption.EncryptionManager encryption()- Specified by:
encryptionin interfaceorg.apache.iceberg.Table
-
refresh
public void refresh()- Specified by:
refreshin interfaceorg.apache.iceberg.Table
-
currentSnapshot
public org.apache.iceberg.Snapshot currentSnapshot()- Specified by:
currentSnapshotin interfaceorg.apache.iceberg.Table
-
snapshot
public org.apache.iceberg.Snapshot snapshot(long snapshotId) - Specified by:
snapshotin interfaceorg.apache.iceberg.Table
-
snapshots
- Specified by:
snapshotsin interfaceorg.apache.iceberg.Table
-
history
- Specified by:
historyin interfaceorg.apache.iceberg.Table
-
refs
- Specified by:
refsin interfaceorg.apache.iceberg.Table
-
statisticsFiles
- Specified by:
statisticsFilesin interfaceorg.apache.iceberg.Table
-
partitionStatisticsFiles
- Specified by:
partitionStatisticsFilesin interfaceorg.apache.iceberg.Table
-
newScan
public org.apache.iceberg.TableScan newScan()- Specified by:
newScanin interfaceorg.apache.iceberg.Table
-
newIncrementalAppendScan
public org.apache.iceberg.IncrementalAppendScan newIncrementalAppendScan()- Specified by:
newIncrementalAppendScanin interfaceorg.apache.iceberg.Table
-
newIncrementalChangelogScan
public org.apache.iceberg.IncrementalChangelogScan newIncrementalChangelogScan()- Specified by:
newIncrementalChangelogScanin interfaceorg.apache.iceberg.Table
-
updateSchema
public org.apache.iceberg.UpdateSchema updateSchema()- Specified by:
updateSchemain interfaceorg.apache.iceberg.Table
-
updateSpec
public org.apache.iceberg.UpdatePartitionSpec updateSpec()- Specified by:
updateSpecin interfaceorg.apache.iceberg.Table
-
updateProperties
public org.apache.iceberg.UpdateProperties updateProperties()- Specified by:
updatePropertiesin interfaceorg.apache.iceberg.Table
-
replaceSortOrder
public org.apache.iceberg.ReplaceSortOrder replaceSortOrder()- Specified by:
replaceSortOrderin interfaceorg.apache.iceberg.Table
-
updateLocation
public org.apache.iceberg.UpdateLocation updateLocation()- Specified by:
updateLocationin interfaceorg.apache.iceberg.Table
-
newAppend
public org.apache.iceberg.AppendFiles newAppend()- Specified by:
newAppendin interfaceorg.apache.iceberg.Table
-
newFastAppend
public org.apache.iceberg.AppendFiles newFastAppend()- Specified by:
newFastAppendin interfaceorg.apache.iceberg.Table
-
newRewrite
public org.apache.iceberg.RewriteFiles newRewrite()- Specified by:
newRewritein interfaceorg.apache.iceberg.Table
-
rewriteManifests
public org.apache.iceberg.RewriteManifests rewriteManifests()- Specified by:
rewriteManifestsin interfaceorg.apache.iceberg.Table
-
newOverwrite
public org.apache.iceberg.OverwriteFiles newOverwrite()- Specified by:
newOverwritein interfaceorg.apache.iceberg.Table
-
newRowDelta
public org.apache.iceberg.RowDelta newRowDelta()- Specified by:
newRowDeltain interfaceorg.apache.iceberg.Table
-
newReplacePartitions
public org.apache.iceberg.ReplacePartitions newReplacePartitions()- Specified by:
newReplacePartitionsin interfaceorg.apache.iceberg.Table
-
newDelete
public org.apache.iceberg.DeleteFiles newDelete()- Specified by:
newDeletein interfaceorg.apache.iceberg.Table
-
updateStatistics
public org.apache.iceberg.UpdateStatistics updateStatistics()- Specified by:
updateStatisticsin interfaceorg.apache.iceberg.Table
-
expireSnapshots
public org.apache.iceberg.ExpireSnapshots expireSnapshots()- Specified by:
expireSnapshotsin interfaceorg.apache.iceberg.Table
-
manageSnapshots
public org.apache.iceberg.ManageSnapshots manageSnapshots()- Specified by:
manageSnapshotsin interfaceorg.apache.iceberg.Table
-
newTransaction
public org.apache.iceberg.Transaction newTransaction()- Specified by:
newTransactionin interfaceorg.apache.iceberg.Table
-
equals
-
hashCode
public int hashCode() -
toString
-