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
Asked
Active
Viewed 8,300 times
2 Answers
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.

keelar
- 5,814
- 7
- 40
- 79
-
2Since Thrift was dropped, what would this explanation be nowadays? – Pedro Gordo Feb 23 '17 at 09:06
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.

Chris Shain
- 50,833
- 6
- 93
- 125