DataStax Graph data types
Describes the DataStax Graph data types.
DataStax Graph (DSG) uses Apache Cassandra CQL data types. For search indexes, see the relationship between DSG and Solr data types.
DSE Graph Data Type | Description | addV/addE example | ||
---|---|---|---|---|
Ascii |
ASCII value |
|
||
Bigint |
64-bit signed long |
|
||
Blob |
Arbitrary bytes (no validation), expressed as base64 strings |
|
||
Boolean |
True or false |
|
||
Date |
Date, in the format of '1940' or '1940-01-01'. |
|
||
Decimal |
Variable-precision decimal
|
|
||
Double |
64-bit IEEE-754 floating point |
|
||
Duration |
Time duration in milliseconds |
|
||
Float |
32-bit IEEE-754 floating point |
|
||
Inet |
IP address string in IPv4 or IPv6 format, used by the python-cql driver and CQL native protocols |
|
||
Int |
32-bit signed integer |
|
||
Linestring |
Used for geospatial linestrings |
|
||
Point |
Used for geospatial; note that this corresponds to longitude/latitude, in that order, for mapping geospatial points. |
|
||
Polygon |
Used for geospatial and Cartesian polygons (double …. points) a |
|
||
Smallint |
2 byte integer |
|
||
Text |
String or UTF-8 encoded string |
|
||
Time |
Time in the format of '10:00:00' or '10:00'. |
|
||
Timestamp |
Date, or date plus time, encoded as 8 bytes since epoch. The timestamp data type must be specified as a valid DSE database timestamp: ` johnDoe.addEdge('rated', beefBourguignon, 'timestamp', '2014-01-01T00:00:00.00Z', 'stars', 5, 'comment', 'Pretty tasty!') ` |
|
||
Timeuuid |
A Time UUID |
|
||
Tinyint |
|
|||
Uuid |
A UUID in standard UUID format or timeuuid format |
|
||
Varchar |
Arbitrary string |
|
||
Varint |
Arbitrary-precision integer |
|
||
List |
Ordered list collection |
|
||
Set |
Unordered list collection |
|
||
Map |
Key-value pairs collection |
|
||
Tuple |
Defined tuple |
|
||
User-defined type (UDT) |
User-defined type |
|