public class TableMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TableMetadata.SnapshotLogEntry |
Modifier and Type | Method and Description |
---|---|
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() |
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<TableMetadata.SnapshotLogEntry> |
snapshotLog() |
java.util.List<Snapshot> |
snapshots() |
PartitionSpec |
spec() |
PartitionSpec |
spec(int id) |
java.util.List<PartitionSpec> |
specs() |
TableMetadata |
updateLocation(java.lang.String newLocation) |
TableMetadata |
updatePartitionSpec(PartitionSpec newPartitionSpec) |
TableMetadata |
updateSchema(Schema newSchema,
int newLastColumnId) |
TableMetadata |
updateTableLocation(java.lang.String newLocation) |
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 long lastUpdatedMillis()
public int lastColumnId()
public Schema schema()
public PartitionSpec spec()
public PartitionSpec spec(int id)
public java.util.List<PartitionSpec> specs()
public int defaultSpecId()
public java.lang.String location()
public java.util.Map<java.lang.String,java.lang.String> properties()
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<TableMetadata.SnapshotLogEntry> snapshotLog()
public TableMetadata updateTableLocation(java.lang.String newLocation)
public TableMetadata updateSchema(Schema newSchema, int newLastColumnId)
public TableMetadata updatePartitionSpec(PartitionSpec newPartitionSpec)
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)