public static class TableMetadata.Builder
extends java.lang.Object
public TableMetadata.Builder withMetadataLocation(java.lang.String newMetadataLocation)
public TableMetadata.Builder assignUUID()
public TableMetadata.Builder assignUUID(java.lang.String newUuid)
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(UnboundPartitionSpec spec)
public TableMetadata.Builder addPartitionSpec(PartitionSpec spec)
public TableMetadata.Builder setDefaultSortOrder(SortOrder order)
public TableMetadata.Builder setDefaultSortOrder(int sortOrderId)
public TableMetadata.Builder addSortOrder(UnboundSortOrder order)
public TableMetadata.Builder addSortOrder(SortOrder order)
public TableMetadata.Builder addSnapshot(Snapshot snapshot)
public TableMetadata.Builder setSnapshotsSupplier(SerializableSupplier<java.util.List<Snapshot>> snapshotsSupplier)
public TableMetadata.Builder setBranchSnapshot(Snapshot snapshot, java.lang.String branch)
public TableMetadata.Builder setBranchSnapshot(long snapshotId, java.lang.String branch)
public TableMetadata.Builder setRef(java.lang.String name, SnapshotRef ref)
public TableMetadata.Builder removeRef(java.lang.String name)
public TableMetadata.Builder setStatistics(long snapshotId, StatisticsFile statisticsFile)
public TableMetadata.Builder removeStatistics(long snapshotId)
public TableMetadata.Builder removeSnapshots(java.util.List<Snapshot> snapshotsToRemove)
public TableMetadata.Builder removeSnapshots(java.util.Collection<java.lang.Long> idsToRemove)
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.Builder setPreviousFileLocation(java.lang.String previousFileLocation)
public TableMetadata build()