Cassandra support data types to represent numbers, strings, uuid, time etc.,
Data types are categorized like below.
a. Numeric Types
b. String types
c. Time related data types
d. Uuid data type
e. Boolean data type
f. Date data type
g. Blob data type
h. Counter data type
i. Inet data type
j. Collection data types
k. Tuple types
Syntax
<type> ::= <native-type>
| <collection-type>
| <tuple-type>
| <string> // Used for custom types. The fully-qualified name of a JAVA class
<native-type> ::= ascii
| bigint
| blob
| boolean
| counter
| date
| decimal
| double
| float
| inet
| int
| smallint
| text
| time
| timestamp
| timeuuid
| tinyint
| uuid
| varchar
| varint
<collection-type> ::= list '<' <native-type> '>'
| set '<' <native-type> '>'
| map '<' <native-type> ',' <native-type> '>'
<tuple-type> ::= tuple '<' <type> (',' <type>)* '>'
No comments:
Post a Comment