public class TableMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TableMetadata.SnapshotLogEntry |
Modifier and Type | Method and Description |
---|---|
TableMetadata |
addSnapshot(Snapshot snapshot) |
TableMetadata |
buildReplacement(Schema schema,
PartitionSpec partitionSpec,
java.util.Map<java.lang.String,java.lang.String> properties) |
Snapshot |
currentSnapshot() |
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() |
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 |
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() |
TableMetadata |
updateSchema(Schema schema,
int lastColumnId) |
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 java.lang.String location()
public java.util.Map<java.lang.String,java.lang.String> properties()
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 schema, int lastColumnId)
public TableMetadata addSnapshot(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 schema, PartitionSpec partitionSpec, java.util.Map<java.lang.String,java.lang.String> properties)