Data Type¶
Overview
Platform supports common standard data types, Arrays and also support Struct ,Map data type.
Map — A Map has a KeyType and a ValueType. And it can contain a variable number of such Key, Value pairs. For example: map[str, float].
Struct - A Struct has specific fields and FieldTypes for each field, with key-value pairs separated by a colon : and pairs separated by commas. For example: struct[transaction_amt: float, transaction_dt: datetime, id: str]
Defining Data types
A data type is used while creating the object.
User can enter the following types in the data type input box.
Common standard data types :
-
Numerical
-
String
-
DateTime
-
Boolean
Arrays Types:
-
Array[Numerical]
-
Array[String]
-
Array[DateTime]
-
Array[Boolean]
Struct Type :
-
Struct[decision: String, ranking: Numerical]
-
Struct[amt: Array[Numerical], flag: Boolean]
-
Struct[info: Map[Numerical,String],details: Struct[id: String,date: DateTime,age: Numerical]].. etc.
Map:
-
Map[Numerical, String]
-
Map[String, Numerical]
-
Map[Numerical, Array[Boolean]].. etc.
Example
In the Data element registration page, users are asked to select the appropriate Data Type while creating a Data Element.



