public class TableMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TableMetadata.SnapshotLogEntry |
Modifier and Type | Method and Description |
---|---|
TableMetadata |
addStagedSnapshot(Snapshot snapshot) |
TableMetadata |
buildReplacement(Schema updatedSchema,
PartitionSpec updatedPartitionSpec,
java.util.Map<java.lang.String,java.lang.String> updatedProperties) |
Snapshot |
currentSnapshot() |
int |
defaultSpecId() |
InputFile |
file() |
int |
lastColumnId() |
long |
lastUpdatedMillis() |
java.lang.String |
location() |
static TableMetadata |
newTableMetadata(TableOperations ops,
Schema schema,
PartitionSpec spec,
java.lang.String location) |
static TableMetadata |
newTableMetadata(TableOperations ops,
Schema schema,
PartitionSpec spec,
java.lang.String location,
java.util.Map<java.lang.String,java.lang.String> properties) |
java.util.Map<java.lang.String,java.lang.String> |
properties() |
java.lang.String |
property(java.lang.String property,
java.lang.String defaultValue) |
boolean |
propertyAsBoolean(java.lang.String property,
boolean defaultValue) |
int |
propertyAsInt(java.lang.String property,
int defaultValue) |
long |
propertyAsLong(java.lang.String property,
long defaultValue) |
TableMetadata |
removeSnapshotLogEntries(java.util.Set<java.lang.Long> snapshotIds) |
TableMetadata |
removeSnapshotsIf(java.util.function.Predicate<Snapshot> removeIf) |
TableMetadata |
replaceCurrentSnapshot(Snapshot snapshot) |
TableMetadata |
replaceProperties(java.util.Map<java.lang.String,java.lang.String> newProperties) |
TableMetadata |
rollbackTo(Snapshot snapshot) |
Schema |
schema() |
Snapshot |
snapshot(long snapshotId) |
java.util.List<HistoryEntry> |
snapshotLog() |
java.util.List<Snapshot> |
snapshots() |
PartitionSpec |
spec() |
PartitionSpec |
spec(int id) |
java.util.List<PartitionSpec> |
specs() |
java.util.Map<java.lang.Integer,PartitionSpec> |
specsById() |
TableMetadata |
updateLocation(java.lang.String newLocation) |
TableMetadata |
updatePartitionSpec(PartitionSpec newPartitionSpec) |
TableMetadata |
updateSchema(Schema newSchema,
int newLastColumnId) |
TableMetadata |
updateTableLocation(java.lang.String newLocation) |
java.lang.String |
uuid() |
TableMetadata |
withUUID() |
public static TableMetadata newTableMetadata(TableOperations ops, Schema schema, PartitionSpec spec, java.lang.String location)
public static TableMetadata newTableMetadata(TableOperations ops, Schema schema, PartitionSpec spec, java.lang.String location, java.util.Map<java.lang.String,java.lang.String> properties)
public InputFile file()
public java.lang.String uuid()
public long lastUpdatedMillis()
public int lastColumnId()
public Schema schema()
public PartitionSpec spec()
public PartitionSpec spec(int id)
public java.util.List<PartitionSpec> specs()
public java.util.Map<java.lang.Integer,PartitionSpec> specsById()
public int defaultSpecId()
public java.lang.String location()
public java.util.Map<java.lang.String,java.lang.String> properties()
public java.lang.String property(java.lang.String property, java.lang.String defaultValue)
public boolean propertyAsBoolean(java.lang.String property, boolean defaultValue)
public int propertyAsInt(java.lang.String property, int defaultValue)
public long propertyAsLong(java.lang.String property, long defaultValue)
public Snapshot snapshot(long snapshotId)
public Snapshot currentSnapshot()
public java.util.List<Snapshot> snapshots()
public java.util.List<HistoryEntry> snapshotLog()
public TableMetadata withUUID()
public TableMetadata updateTableLocation(java.lang.String newLocation)
public TableMetadata updateSchema(Schema newSchema, int newLastColumnId)
public TableMetadata updatePartitionSpec(PartitionSpec newPartitionSpec)
public TableMetadata addStagedSnapshot(Snapshot snapshot)
public TableMetadata replaceCurrentSnapshot(Snapshot snapshot)
public TableMetadata removeSnapshotsIf(java.util.function.Predicate<Snapshot> removeIf)
public TableMetadata rollbackTo(Snapshot snapshot)
public TableMetadata replaceProperties(java.util.Map<java.lang.String,java.lang.String> newProperties)
public TableMetadata removeSnapshotLogEntries(java.util.Set<java.lang.Long> snapshotIds)
public TableMetadata buildReplacement(Schema updatedSchema, PartitionSpec updatedPartitionSpec, java.util.Map<java.lang.String,java.lang.String> updatedProperties)
public TableMetadata updateLocation(java.lang.String newLocation)