Skip to main content

Data Types

The following data types are natively supported by Dozer.

Primitive Types

Numeric Types (NUMERIC)

Any numeric type, referred as NUMERIC in the rest of the documentation

TypeDescritpionExample
UINTUnsigned 64-bit integer-1
INTSigned 64-bit integer1
FLOAT64-bit floating point number2.567
DECIMALA Decimal number implementation suitable for financial calculations that require significant integral and fractional digits with no round-off errors.DECIMAL(10.90001)

Textual Types (TEXTUAL)

Any textual type, referred as TEXTUAL in the rest of the documentation

TypeDescritpionExample
STRINGVaribale length string'value1'
TEXTVariable length string. TEXT should be used for full-text indexable content.TEXT('The quick brown fox jumps over the lazy dog')

Date / Time Types (DATE/TIME)

Any date and time related type, referred as DATE/TIME in the rest of the documentation

TypeDescritpionExample
TIMESTAMPA date time with supports for timezones, represented using RFC3339 formatTIMESTAMP('2016-09-01T10:11:12.123456-0500')
DATEA simple date, respresented using RFC3339 formatDATE('2016-09-01')

Other

TypeDescritpionExample
BINARYA variable-length generic byte bufferBINARY('0xAC01CCAF5612')
JSONA JSON objectJSON('{"first_name": "John", age: 32}')
POINTA struct of coordinatesPOINT(1.58, 29.06)