官术网_书友最值得收藏!

UUIDs

Cassandra has two types that store Universally Unique Identifiers:

  • The uuid type stores Version 1 and Version 4 UUIDs
  • The timeuuid type stores Version 1 UUIDs and has special functionality for conversion between UUIDs and timestamps

A Universally Unique Identifier (UUID), is essentially a very large number generated in a specific way, designed to guarantee that the same UUID will never be generated anywhere in the world at any time. Version 1 UUIDs are generated using a high-precision timestamp and the generating computer's MAC address; the timestamp can be extracted from the UUID. Version 4 UUIDs use random or pseudo-random numbers.

CQL uses the canonical representation of UUIDs, which is a sequence of hexadecimal digits broken up in specific places by dashes, in the form 8-4-4-4-12. A CQL UUID literal is not surrounded by quotation marks or any other delimiter; for example, 550e8400-e29b-41d4-a716-446655440000 is a valid UUID literal. Most languages have UUID libraries available that will generate UUIDs and output them in the canonical format.

主站蜘蛛池模板: 正定县| 沁阳市| 定西市| 当雄县| 六枝特区| 大田县| 马边| 绥德县| 新建县| 琼结县| 安泽县| 宝应县| 微山县| 阿瓦提县| 汉川市| 板桥市| 郸城县| 绿春县| 浠水县| 新密市| 合山市| 景德镇市| 类乌齐县| 乌鲁木齐县| 正镶白旗| 柳河县| 成安县| 茶陵县| 广平县| 鄂伦春自治旗| 威宁| 昭通市| 凉城县| 栾城县| 东港市| 临桂县| 深水埗区| 昭觉县| 夏邑县| 蓬溪县| 行唐县|