Unsafe ctor to allow creation of Metadata using untyped map.
Unsafe ctor to allow creation of Metadata using untyped map. Note: use this ctor only as a last resort solution, otherwise always prefer MetadataBuilder.
untyped map
Metadata
a Metadata instance
Retrieves the value which is associated with the given key.
Retrieves the value which is associated with the given key. This method invokes the default
method of the map if there is no mapping from the given key to a value. Unless overridden, the default
method throws a NoSuchElementException
.
the key
the value associated with the given key, or the result of the map's default
method, if none exists.
Tests whether this map contains a binding for a key.
Tests whether this map contains a binding for a key.
the key
true
if there is a binding for key
in this map, false
otherwise.
Returns the value associated with a key.
Returns the value associated with a key.
the key value
value containing the value associated with key
in this map cast to the type provided
Optionally returns the value associated with a key.
Optionally returns the value associated with a key.
the key value
an option value containing the value associated with key
in this map, or None
if none exists.
Returns the value associated with a key.
Returns the value associated with a key. Handles empty arrays serialized to Long instead of proper type.
the key value for an array
value containing the value associated with key
in this map cast to the array type provided
Metadata Json Value
Metadata Json Value
Json Value
a Metadata instance
Converts to its pretty json representation
Converts to its pretty json representation
pretty json string
Get underlying untyped Map[String, Any].
Get underlying untyped Map[String, Any]. Since Metadata.map val is private, this is the only way for us to get it
underlying untyped Map[String, Any]
Metadata wrapper allows access to private members of metadata