Skip to end of metadata
Go to start of metadata

GadgetKeeper supports the following data types:

1. Primitives


Name Description
boolean

Has only two possible values: true and false.

int

32-bit signed two's complement integer, which has a minimum value of -231 and a maximum value of 231-1.

long 64-bit signed two's complement integer, which has a minimum value of -263 and a maximum value of 263-1.
float Single-precision 32-bit IEEE 754 floating point.
double Double-precision 64-bit IEEE 754 floating point.
date An instant in time, with no reference to a particular time zone or calendar system. A number of milliseconds since the Unix epoch.
string  Sequence of characters.
uuid  128-bit value universally unique identifier.

2. Arrays


An array is a container object that holds a number of values of a single type. GadgetKeeper arrays have no fixed length. Multiple dimensions are supported.


3. Structures


A complex data type declaration that defines a physically grouped list of variables to be placed under one name in a block of memory. The structure can contain many other complex and simple data type in an association. Structures can be organized in packages.

Please check Working With Structured Data Types for an example on working with structures.

Structure name has following requirements:

  1. must start with a capital letter
  2. must contain only alphanumeric characters

Structure package name has following requirements:

  1. must start with a letter
  2. must contain only alphanumeric characters and .(dot)  as a package delimiter
  3. must be written in all lower case
  4. it's advised for companies to use their reversed Internet domain name to begin their package names - for example, com.example.mypackage for a package named mypackage created by a programmer at example.com.

Build-in structures

  • Location - location in geographic coordinate system.

    Attributes
    Name Required Data Type Description
    lat true double latitude
    lon true double longitude

     Please check Working With Location for an example.

     

     


 

 




  • No labels