AttributeType

See https://docs.tamr.com/reference#attribute-types

tamr_client.attribute.type.BOOLEAN = <PrimitiveType.BOOLEAN: 1>

An enumeration.

tamr_client.attribute.type.DOUBLE = <PrimitiveType.DOUBLE: 2>

An enumeration.

tamr_client.attribute.type.INT = <PrimitiveType.INT: 3>

An enumeration.

tamr_client.attribute.type.LONG = <PrimitiveType.LONG: 4>

An enumeration.

tamr_client.attribute.type.STRING = <PrimitiveType.STRING: 5>

An enumeration.

tamr_client.attribute.type.DEFAULT = Array(inner_type=<PrimitiveType.STRING: 5>)

//docs.tamr.com/reference#attribute-types

Note

sphinx_autodoc_typehints cannot handle forward reference to AttributeType, so reference docs are written manually for this type

Parameters

inner_type

Type

See https

tamr_client.attribute.type.GEOSPATIAL = Record(attributes=(SubAttribute(name='point', type=Array(inner_type=<PrimitiveType.DOUBLE: 2>), is_nullable=True), SubAttribute(name='multiPoint', type=Array(inner_type=Array(inner_type=<PrimitiveType.DOUBLE: 2>)), is_nullable=True), SubAttribute(name='lineString', type=Array(inner_type=Array(inner_type=<PrimitiveType.DOUBLE: 2>)), is_nullable=True), SubAttribute(name='multiLineString', type=Array(inner_type=Array(inner_type=Array(inner_type=<PrimitiveType.DOUBLE: 2>))), is_nullable=True), SubAttribute(name='polygon', type=Array(inner_type=Array(inner_type=Array(inner_type=<PrimitiveType.DOUBLE: 2>))), is_nullable=True), SubAttribute(name='multiPolygon', type=Array(inner_type=Array(inner_type=Array(inner_type=Array(inner_type=<PrimitiveType.DOUBLE: 2>)))), is_nullable=True)))

//docs.tamr.com/reference#attribute-types

Parameters

attributes

Type

See https

class tamr_client.attribute.type.Array(inner_type)
Parameters

inner_type (AttributeType) –

class tamr_client.attribute.type.Map(inner_type)
Parameters

inner_type (AttributeType) –

class tamr_client.attribute.type.Record(attributes)[source]

See https://docs.tamr.com/reference#attribute-types

Parameters

attributes (Tuple[SubAttribute, …]) –

tamr_client.attribute.type.from_json(data)[source]

Make an attribute type from JSON data (deserialize)

Parameters

data (Dict[str, Any]) – JSON data from Tamr server

Return type

Union[PrimitiveType, Array, Map, Record]

tamr_client.attribute.type.to_json(attr_type)[source]

Serialize attribute type to JSON

Parameters

attr_type (Union[PrimitiveType, Array, Map, Record]) – Attribute type to serialize

Return type

Dict[str, Any]