Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the HBase design specifications?

Shulou Source: shulou.com Published: 2022-06-02 05:49:57 10月03日 Update

What are the HBase design specifications, I believe many inexperienced people do not know what to do about this, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Project

Description

Example

Namespace

Adopt the combination of English words and Arabic numerals, in which the word must be capitalized, and the first character must be an English character, not a number.

It is not recommended to use connectors (underscores) to concatenate multiple words, simple semantics can use a single word, complex semantics can use the first letter stitching of multiple words.

Try to limit the length to 4-8 characters.

Namespaces can generally be consistent with project names, organizational names, and so on.

Build the namespace according to the project name: DLQX (Power Meteorological acronym splicing form), short and clear.

Long namespace names are not recommended, for example, the following forms are not recommended: USER_INFO_MANAGE, etc.

Table name

Adopt the combination form of English words, Arabic numerals and hyphens (_), in which the words must be capitalized, and the first character must be English characters, not numbers, and multiple words can be spliced with connectors.

Try to limit the length to between 8 and 16 characters.

Try to use English words with clear meaning, but it is not recommended to use the phonetic alphabet or the first letter combination of Chinese characters.

The table name that conforms to the specification:

USER_INFO_MANAGE 、

WEATHER_DATA 、

T_ELECTRIC_GATHER et al.

Column Family name

Adopt the combination of English words and Arabic numerals, in which the word must be capitalized, and the first character must be an English character, not a number.

Try to limit the length to 1-6 characters, and too long column family names will take up more storage space.

Column family names that conform to the specification:

D1, D2, DATA and so on.

Deprecated column family names:

USER_INFO, dumb1, etc.

Column name

Adopt the combination form of English words, Arabic numerals and hyphens (_), in which the words must be capitalized, and the first character must be English characters, not numbers, and multiple words can be spliced with connectors.

Try to limit the length to between 1 and 16 characters.

Try to use English words with clear meaning, but it is not recommended to use the phonetic alphabet or the first letter combination of Chinese characters.

Column names that conform to the specification:

USER_ID, DATA_1, REMARK, etc.

The column names that are not recommended are:

UserID, 1_DATA, etc.

After reading the above, have you mastered the methods of the HBase design specification? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Words names English characters letters forms combinations spaces between multiple uppercase suggestions pinyin numbers length Arabic numerals initials Allah restrictions more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MariaDB Apple vpn NVidia