public final class Metadata extends Object implements Action
Metadata
action. Subsequent Metadata
actions completely
overwrite the current metadata of the table. It is the responsibility of the
writer to ensure that any data already present in the table is still valid
after any change. There can be at most one Metadata
action in a
given version of the table.Modifier and Type | Class and Description |
---|---|
static class |
Metadata.Builder
Builder class for
Metadata . |
Constructor and Description |
---|
Metadata(String id,
String name,
String description,
Format format,
java.util.List<String> partitionColumns,
java.util.Map<String,String> configuration,
java.util.Optional<Long> createdTime,
StructType schema) |
Modifier and Type | Method and Description |
---|---|
static Metadata.Builder |
builder() |
Metadata.Builder |
copyBuilder() |
boolean |
equals(Object o) |
java.util.Map<String,String> |
getConfiguration() |
java.util.Optional<Long> |
getCreatedTime() |
String |
getDescription() |
Format |
getFormat() |
String |
getId() |
String |
getName() |
java.util.List<String> |
getPartitionColumns() |
StructType |
getSchema() |
int |
hashCode() |
public Metadata(@Nonnull String id, @Nullable String name, @Nullable String description, @Nonnull Format format, @Nonnull java.util.List<String> partitionColumns, @Nonnull java.util.Map<String,String> configuration, @Nonnull java.util.Optional<Long> createdTime, @Nullable StructType schema)
@Nonnull public String getId()
@Nullable public String getName()
@Nullable public String getDescription()
@Nonnull public java.util.List<String> getPartitionColumns()
java.util.List
containing the names of
columns by which the data should be partitioned@Nonnull public java.util.Map<String,String> getConfiguration()
java.util.Map
containing configuration
options for this metadata@Nonnull public java.util.Optional<Long> getCreatedTime()
@Nullable public StructType getSchema()
StructType
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Metadata.Builder copyBuilder()
Metadata.Builder
initialized with the same properties as this
Metadata
instancepublic static Metadata.Builder builder()
Metadata.Builder