Package io.delta.kernel.internal.actions
Class Metadata
Object
io.delta.kernel.internal.actions.Metadata
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilterOutUnchangedProperties(Map<String, String> newProperties) Filter out the key-value pair matches exactly with the old properties.static MetadatafromColumnVector(ColumnVector vector, int rowId) static MetadataThe logical data schema which excludes partition columnsgetId()getName()Set of lowercase partition column namesThe full schema (including partition columns) with the field names converted to their physical names (column names used in the data files) based on the table's column mapping mode.inthashCode()toRow()Encode as aRowobject with the schemaFULL_SCHEMA.toString()withConfigurationKeysUnset(Set<String> keysToUnset) Returns a new metadata object that has a new configuration which does not contain any of the keys provided inkeysToUnset.withMergedConfiguration(Map<String, String> configuration) Returns a new metadata object that has a new configuration which is the combination of its current configuration andconfiguration.withNewSchema(StructType schema) withReplacedConfiguration(Map<String, String> newConfiguration) Returns a new Metadata object with the configuration provided with newConfiguration (any prior configuration is replaced).
-
Field Details
-
FULL_SCHEMA
-
-
Constructor Details
-
Metadata
-
-
Method Details
-
fromRow
-
fromColumnVector
-
withMergedConfiguration
Returns a new metadata object that has a new configuration which is the combination of its current configuration andconfiguration.For overlapping keys the values from
configurationtake precedence. -
withConfigurationKeysUnset
Returns a new metadata object that has a new configuration which does not contain any of the keys provided inkeysToUnset. -
withReplacedConfiguration
Returns a new Metadata object with the configuration provided with newConfiguration (any prior configuration is replaced). -
withNewSchema
-
toString
-
getSchemaString
-
getSchema
-
getPartitionColumns
-
getPartitionColNames
Set of lowercase partition column names -
getDataSchema
The logical data schema which excludes partition columns -
getId
-
getName
-
getDescription
-
getFormat
-
getCreatedTime
-
getConfigurationMapValue
-
getConfiguration
-
getPhysicalSchema
The full schema (including partition columns) with the field names converted to their physical names (column names used in the data files) based on the table's column mapping mode. When column mapping mode is ID, fieldId metadata is preserved in the field metadata; all column metadata is otherwise removed. -
filterOutUnchangedProperties
Filter out the key-value pair matches exactly with the old properties.- Parameters:
newProperties- the new properties to be filtered- Returns:
- the filtered properties
-
toRow
Encode as aRowobject with the schemaFULL_SCHEMA.- Returns:
Rowobject with the schemaFULL_SCHEMA
-
hashCode
public int hashCode() -
equals
-