What is mutation in cassandra?
Asked Answered
K

2

6

What is mutation in cassandra? What is it doing? i didnt find any full information about it... Can you answer or share the link with manual or description Thanks

Kursh answered 27/9, 2011 at 17:16 Comment(0)
D
4

From http://wiki.apache.org/cassandra/API:

Mutation

A Mutation encapsulates either a column to insert, or a deletion to execute for a key. Like ColumnOrSuperColumn, the two properties are mutually exclusive - you may only set one on a Mutation.

Dermatoplasty answered 27/9, 2011 at 17:27 Comment(0)
G
5

Mutation is a thrift-generated class defined in the cassandra.thrift file. You can find this file in the interface folder under your cassandra folder:

/**
    A Mutation is either an insert (represented by filling column_or_supercolumn)
    or a deletion (represented by filling the deletion attribute).
    @param column_or_supercolumn. An insert to a column or supercolumn
        (possibly counter column or supercolumn)
    @param deletion. A deletion of a column or supercolumn
*/
struct Mutation {
    1: optional ColumnOrSuperColumn column_or_supercolumn,
    2: optional Deletion deletion,
}

where ColumnOrSuperColumn and Deletion are also thrift objects, defined in the same file.

Graniah answered 24/9, 2013 at 3:54 Comment(1)
Since Thrift was dropped, what would this explanation be nowadays?Berndt
D
4

From http://wiki.apache.org/cassandra/API:

Mutation

A Mutation encapsulates either a column to insert, or a deletion to execute for a key. Like ColumnOrSuperColumn, the two properties are mutually exclusive - you may only set one on a Mutation.

Dermatoplasty answered 27/9, 2011 at 17:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.