Column family in the Cassandra database

Source: Internet
Author: User
Tags cassandra

The column family in the Cassandra corresponds to a table in the relational database that is used to store rows and fields.

Column number in column family is not fixed

In a relational database, each row contains the same number of fields. However, in Cassandra, although column family can define the metadata for column (metadata), the actual number of fields per line is determined by the client program, so it is not necessary to have all the same number of fields.

Classification of column Family

Static column family (static column family)

For static column family, field names are fixed and are more appropriate for predefined metadata for these columns, as shown in the following illustration:

Animated column family (Dynamic column family)

For dynamic column family, the field names are computed and provided by the application, so column family can only define the types of those fields, but you cannot specify the names and values of these fields, which are derived from the application's insertion into a field, as shown in the following illustration:

Row key

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.