Cassandra frozen keyword meaning

前端 未结 1 762
借酒劲吻你
借酒劲吻你 2021-02-02 07:10

What\'s the meaning of the frozen keyword in Cassandra?

I\'m trying to read this documentation page: Using a user-defined type, but their explanation for th

1条回答
  •  梦如初夏
    2021-02-02 07:19

    In Cassandra if you define UDT or Collection as frozen, you can't update UDT's or collection's individual item, you have to reinsert with full value.

    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.

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

    @Alon : "Long story short: frozen = immutable"

    0 讨论(0)
提交回复
热议问题