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