gpt4 book ai didi

database - Cassandra frozen 关键字含义

转载 作者:太空狗 更新时间:2023-10-30 01:39:23 28 4
gpt4 key购买 nike

Cassandra 中的frozen 关键字是什么意思?

我正在尝试阅读此文档页面:Using a user-defined type ,但他们对 frozen 关键字(他们在示例中使用的关键字)的解释对我来说不够清楚:

To support future capabilities, a column definition of a user-defined or tuple type requires the frozen keyword. Cassandra serializes a frozen value having multiple components into a single value. For examples and usage information, see "Using a user-defined type", "Tuple type", and Collection type.

我还没有在网上找到任何其他定义或明确的解释。

最佳答案

在 Cassandra 中,如果您将 UDT 或集合定义为卡住的,则无法更新 UDT 或集合的单个项目,您必须重新插入完整值。

A frozen value serializes multiple components into a single value. Non-frozen types allow updates to individual fields. Cassandra treats the value of a frozen type as a blob. The entire value must be overwritten.

来源:https://docs.datastax.com/en/cql/3.1/cql/cql_reference/collection_type_r.html

@Alon:“长话短说:卡住 = 不可变”

关于database - Cassandra frozen 关键字含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42532743/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com