mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 17:40:34 +00:00
This model is meant to follow CQL more closely than the model in Origin. We have direct representations for CQL rows and cells. We avoid using thrift concepts here. Here's how some of the Origin's classes map to this: Mutation -> mutation ColumnFamily -> partition CellName -> clustering_key/clustering_prefix and column_id Cell -> atomic_cell (not for collection types though) Note about CounterMutation. CounterMutation is for modifying counter tables. A counter table can only have one column, the counter value. In Origin CounterMutation is a subclass of IMutation which represents mutations on counter tables. The only field it adds is consistency level. I think we don't need to have a separate class for this, at least in the generic code, which simplifies things. We can check whether the table is a counter table from the schema and we can pass the consistency level from QueryOptions during serialization.