Package org.apache.beam.sdk.io.iceberg
Class SerializableTableSpec
java.lang.Object
org.apache.beam.sdk.io.iceberg.SerializableTableSpec
- All Implemented Interfaces:
Serializable
@DefaultSchema(AutoValueSchema.class)
public abstract class SerializableTableSpec
extends Object
implements Serializable
A serializable, lightweight representation of an Iceberg
Table's declarative metadata.
Captures the table's schemas, partition specs, sort orders, location, properties, identifier,
encrypted keys, and serialized FileIO configuration. Suitable for broadcasting across
worker nodes via Beam's side-input mechanism.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SerializableTableSpecConstructs aSerializableTableSpecfrom an explicit table identifier string and aTable.static SerializableTableSpecfromTable(org.apache.iceberg.catalog.TableIdentifier tableIdentifier, org.apache.iceberg.Table table) static SerializableTableSpecfromTable(org.apache.iceberg.Table table) static SchemaCoder<SerializableTableSpec> getCoder()Returns the cachedSchemaCoderforSerializableTableSpec.List<org.apache.iceberg.encryption.EncryptedKey> org.apache.iceberg.io.FileIOReturns a cachedFileIOinstance for this table using default configuration.org.apache.iceberg.io.FileIOReturns a cachedFileIOinstance for this table, configured with the provided HadoopConfigurationif supported.abstract Stringabstract longabstract Stringabstract StringgetName()abstract intorg.apache.iceberg.PartitionSpec@Nullable org.apache.iceberg.PartitionSpecgetPartitionSpec(int specId) org.apache.iceberg.Schema@Nullable org.apache.iceberg.SchemagetSchema(int schemaId) abstract intorg.apache.iceberg.SortOrder@Nullable org.apache.iceberg.SortOrdergetSortOrder(int orderId) abstract intorg.apache.iceberg.catalog.TableIdentifierabstract Stringabstract SerializableTableSpec.Builder
-
Constructor Details
-
SerializableTableSpec
public SerializableTableSpec()
-
-
Method Details
-
getTableIdentifierString
-
getName
-
getLocation
-
getSchemaId
-
getSchemasJson
-
getSpecId
-
getPartitionSpecsJson
-
getOrderId
-
getSortOrdersJson
-
getProperties
-
getFileIoJson
-
getEncryptedKeyJsons
-
getLastUpdatedMillis
-
getSchemas
-
getSchema
-
getSchema
-
getPartitionSpecs
-
getPartitionSpec
-
getPartitionSpec
-
getSortOrders
-
getSortOrder
-
getSortOrder
-
getTableIdentifier
-
getFileIO
Returns a cachedFileIOinstance for this table using default configuration. -
getFileIO
@SchemaIgnore public org.apache.iceberg.io.FileIO getFileIO(@Nullable org.apache.hadoop.conf.Configuration conf) Returns a cachedFileIOinstance for this table, configured with the provided HadoopConfigurationif supported. -
getEncryptedKeys
-
builder
-
toBuilder
-
fromTable
Constructs aSerializableTableSpecfrom aTable, usingTable.name()as the table identifier string.Note: When possible, prefer
fromTable(TableIdentifier, Table)to avoid catalog name prefix ambiguities inTable.name(). -
fromTable
public static SerializableTableSpec fromTable(org.apache.iceberg.catalog.TableIdentifier tableIdentifier, org.apache.iceberg.Table table) -
fromTable
public static SerializableTableSpec fromTable(String tableIdentifierString, org.apache.iceberg.Table table) Constructs aSerializableTableSpecfrom an explicit table identifier string and aTable. -
getCoder
Returns the cachedSchemaCoderforSerializableTableSpec.
-