Package io.delta.kernel.types
Class FieldMetadata
Object
io.delta.kernel.types.FieldMetadata
The metadata for a given
StructField. The contents are immutable.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldMetadata.Builderbuilder()booleanstatic FieldMetadataempty()booleanbooleanequalsIgnoreKeys(FieldMetadata other, Set<String> keys) Are the metadata same, ignoring the specified keys?getBoolean(String key) Boolean[]getBooleanArray(String key) Double[]getDoubleArray(String key) Long[]getLongArray(String key) getMetadata(String key) getMetadataArray(String key) String[]getStringArray(String key) inthashCode()toString()
-
Method Details
-
getEntries
- Returns:
- list of the key-value pairs in this
FieldMetadata
-
contains
- Parameters:
key- the key to check for- Returns:
- True if
thiscontains a mapping for the given key, False otherwise
-
get
- Parameters:
key- the key to check for- Returns:
- the value to which the specified key is mapped, or null if there is no mapping for the given key
-
getLong
-
getDouble
-
getBoolean
-
getString
-
getMetadataColumnSpec
-
getMetadata
-
getLongArray
-
getDoubleArray
-
getBooleanArray
-
getStringArray
-
getMetadataArray
-
toString
-
equalsIgnoreKeys
Are the metadata same, ignoring the specified keys? -
equals
-
hashCode
public int hashCode() -
builder
- Returns:
- a new
FieldMetadata.Builder
-
empty
- Returns:
- an empty
FieldMetadatainstance
-