public class Metadata
extends Object
| Modifier and Type | Field and Description |
|---|---|
static StructType |
FULL_SCHEMA |
| Constructor and Description |
|---|
Metadata(String id,
java.util.Optional<String> name,
java.util.Optional<String> description,
Format format,
String schemaString,
StructType schema,
ArrayValue partitionColumns,
java.util.Optional<Long> createdTime,
MapValue configurationMapValue) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<String,String> |
filterOutUnchangedProperties(java.util.Map<String,String> newProperties)
Filter out the key-value pair matches exactly with the old properties.
|
static Metadata |
fromColumnVector(ColumnVector vector,
int rowId) |
java.util.Map<String,String> |
getConfiguration() |
MapValue |
getConfigurationMapValue() |
java.util.Optional<Long> |
getCreatedTime() |
StructType |
getDataSchema()
The logical data schema which excludes partition columns
|
java.util.Optional<String> |
getDescription() |
Format |
getFormat() |
String |
getId() |
java.util.Optional<String> |
getName() |
java.util.Set<String> |
getPartitionColNames()
Set of lowercase partition column names
|
ArrayValue |
getPartitionColumns() |
StructType |
getSchema() |
String |
getSchemaString() |
Row |
toRow()
Encode as a
Row object with the schema FULL_SCHEMA. |
String |
toString() |
Metadata |
withNewConfiguration(java.util.Map<String,String> configuration) |
Metadata |
withNewSchema(StructType schema) |
public static final StructType FULL_SCHEMA
public Metadata(String id,
java.util.Optional<String> name,
java.util.Optional<String> description,
Format format,
String schemaString,
StructType schema,
ArrayValue partitionColumns,
java.util.Optional<Long> createdTime,
MapValue configurationMapValue)
public static Metadata fromColumnVector(ColumnVector vector, int rowId)
public Metadata withNewConfiguration(java.util.Map<String,String> configuration)
public Metadata withNewSchema(StructType schema)
public String toString()
toString in class Objectpublic String getSchemaString()
public StructType getSchema()
public ArrayValue getPartitionColumns()
public java.util.Set<String> getPartitionColNames()
public StructType getDataSchema()
public String getId()
public java.util.Optional<String> getName()
public java.util.Optional<String> getDescription()
public Format getFormat()
public java.util.Optional<Long> getCreatedTime()
public MapValue getConfigurationMapValue()
public java.util.Map<String,String> getConfiguration()
public java.util.Map<String,String> filterOutUnchangedProperties(java.util.Map<String,String> newProperties)
newProperties - the new properties to be filteredpublic Row toRow()
Row object with the schema FULL_SCHEMA.Row object with the schema FULL_SCHEMA