AttributeType

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

tamr_client.attribute_type.BOOLEAN = Boolean()
tamr_client.attribute_type.DOUBLE = Double()
tamr_client.attribute_type.INT = Int()
tamr_client.attribute_type.LONG = Long()
tamr_client.attribute_type.STRING = String()
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)
Parameters

attributes (Tuple [SubAttribute]) –

tamr_client.attribute_type.from_json(data)

Make an attribute type from JSON data (deserialize)

Parameters

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

Return type

Union[Boolean, Double, Int, Long, String, Array, Map, Record]

tamr_client.attribute_type.to_json(attr_type)

Serialize attribute type to JSON

Parameters

attr_type (Union[Boolean, Double, Int, Long, String, Array, Map, Record]) – Attribute type to serialize

Return type

Dict[str, Any]

Type aliases

tamr_client.attributes.type_alias.DEFAULT = Array(inner_type=String())
tamr_client.attributes.type_alias.GEOSPATIAL = Record(attributes=(SubAttribute(name='point', type=Array(inner_type=Double()), is_nullable=True, description=None), SubAttribute(name='multiPoint', type=Array(inner_type=Array(inner_type=Double())), is_nullable=True, description=None), SubAttribute(name='lineString', type=Array(inner_type=Array(inner_type=Double())), is_nullable=True, description=None), SubAttribute(name='multiLineString', type=Array(inner_type=Array(inner_type=Array(inner_type=Double()))), is_nullable=True, description=None), SubAttribute(name='polygon', type=Array(inner_type=Array(inner_type=Array(inner_type=Double()))), is_nullable=True, description=None), SubAttribute(name='multiPolygon', type=Array(inner_type=Array(inner_type=Array(inner_type=Array(inner_type=Double())))), is_nullable=True, description=None)))