Data types for Cassandra databases

Source: Internet
Author: User

Data types are used to constrain values that are inserted into a field.

In a relational database, the data type is specified when the table is defined.

In Cassandra, the field type is given by the validator (validator) and the comparer (comparator), which validator the type used to constrain the value of the field, and comparator the type used to constrain the field name.

Note: Data types in relational databases and Cassandra have different definitions of time. In a relational database, the data type must be specified at the time the table structure is defined, but Cassandra is not necessary because it is always stored as a bytestype type, and you can specify what type to treat the store according to the client request.

Basic data types in Cassandra:

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/database/extra/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.