This page gives an overview about the data types supported by Polypheny.
|BIGINT||8 bytes signed (two’s complement). Ranges from |
|BOOLEAN||1-bit. Takes the value |
|DATE||Represents a date. Format: |
|DECIMAL||A decimal number is a number that can have a decimal point in it. This type has two arguments: precision and scale. The scale can not exceed the precision.|
|DOUBLE||8 bytes IEEE 754. Covers a range from |
|INTEGER||4 bytes, signed (two’s complement). Covers a range from |
|REAL||4 bytes, IEEE 754. Covers a range from |
|SMALLINT||2 bytes, signed (two’s complement). Covers a range from |
|TIME||Represents a time of day without time zone. Optionally, precision can have a value between 0 and 3 specifying the number of fractional seconds. Format: |
|TIMESTAMP||Represents a combination of DATE and TIME values. Optionally,precision can have a value between 0 and 3 specifying the number of fractional seconds. Format: |
|TINYINT||1 byte, signed (two’s complement). Covers a range from |
|VARCHAR||String (can contain letters, numbers, and special characters) with variable length. The maximum length is specified as parameter.|
An array is an ordered, contiguous collection that may contain duplicates. Polypheny-DB supports arrays of all scalar types.
In Polypheny-DB, arrays can have an arbitrary dimension and cardinality. Both are specified as arguments. Specifying -1 disables validation.
The dimension specifies how deep arrays can be nested. A dimension of one therefore means that nested arrays are not allowed while a dimension of two allows nested arrays but no nested arrays within nested arrays.
The cardinality specifies the number of elements (values and nested arrays) in every (nested) array.
Multimedia and File Types
Polypheny-DB natively supports storing files. In addition to the generic
FILE data type there are also additional types for multimedia content. Multimedia files are not checked by their file extension, but by their content type. See SimpleMagic.ContentType for more information.
|SOUND||Accepted content types: AIFF, AUDIO/MPEG, MIDI, REAL/AUDIO, WAV|
|FILE||Accepts files of any type.|
|IMAGE||Accepted content types: APPLE_QUICKTIME_IMAGE, BMP, GIF, JPEG, JPEG 2000, PBM, PGM, PNG, PPM, SVG, TIFF|
|VIDEO||Accepted content types: APPLE_QUICKTIME_MOVIE, AVI, MNG, MP4A, MP4V, VIDEO/MPEG|