Metadata Class

Class that maps to the metadata section of the MLTable.

Supports the getting & adding of arbritrary metadata properties.

Inheritance
builtins.object
Metadata

Constructor

Metadata()

Methods

add

Sets the value of the property named key in this MLTable's metadata to value. If the value of key was previously set, the value is overriden.

get

Returns the value associated with the property key in this MLTable's metadata. If no such property exists, returns None.

has

Returns if this MLTable's metadata has a property named key.

add

Sets the value of the property named key in this MLTable's metadata to value. If the value of key was previously set, the value is overriden.

add(key, value)

Parameters

Name Description
key
Required
str

property name to check

value
Required

value to set

Returns

Type Description

None

get

Returns the value associated with the property key in this MLTable's metadata. If no such property exists, returns None.

get(key)

Parameters

Name Description
key
Required
str

property name to retrieve value of

Returns

Type Description

value associated with key, or None if nonexistant

has

Returns if this MLTable's metadata has a property named key.

has(key)

Parameters

Name Description
key
Required
str

property name to check for

Returns

Type Description

if metadata contains a property named key