Package org.apache.iceberg
Class TableMetadata.Builder
- java.lang.Object
-
- org.apache.iceberg.TableMetadata.Builder
-
- Enclosing class:
- TableMetadata
public static class TableMetadata.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
withMetadataLocation
public TableMetadata.Builder withMetadataLocation(java.lang.String newMetadataLocation)
-
assignUUID
public TableMetadata.Builder assignUUID()
-
upgradeFormatVersion
public TableMetadata.Builder upgradeFormatVersion(int newFormatVersion)
-
setCurrentSchema
public TableMetadata.Builder setCurrentSchema(Schema newSchema, int newLastColumnId)
-
setCurrentSchema
public TableMetadata.Builder setCurrentSchema(int schemaId)
-
addSchema
public TableMetadata.Builder addSchema(Schema schema, int newLastColumnId)
-
setDefaultPartitionSpec
public TableMetadata.Builder setDefaultPartitionSpec(PartitionSpec spec)
-
setDefaultPartitionSpec
public TableMetadata.Builder setDefaultPartitionSpec(int specId)
-
addPartitionSpec
public TableMetadata.Builder addPartitionSpec(PartitionSpec spec)
-
setDefaultSortOrder
public TableMetadata.Builder setDefaultSortOrder(SortOrder order)
-
setDefaultSortOrder
public TableMetadata.Builder setDefaultSortOrder(int sortOrderId)
-
addSortOrder
public TableMetadata.Builder addSortOrder(SortOrder order)
-
addSnapshot
public TableMetadata.Builder addSnapshot(Snapshot snapshot)
-
setCurrentSnapshot
public TableMetadata.Builder setCurrentSnapshot(Snapshot snapshot)
-
setCurrentSnapshot
public TableMetadata.Builder setCurrentSnapshot(long snapshotId)
-
removeSnapshots
public TableMetadata.Builder removeSnapshots(java.util.List<Snapshot> snapshotsToRemove)
-
setProperties
public TableMetadata.Builder setProperties(java.util.Map<java.lang.String,java.lang.String> updated)
-
removeProperties
public TableMetadata.Builder removeProperties(java.util.Set<java.lang.String> removed)
-
setLocation
public TableMetadata.Builder setLocation(java.lang.String newLocation)
-
discardChanges
public TableMetadata.Builder discardChanges()
-
build
public TableMetadata build()
-
-