Skip to main content

Module mutation

Module mutation 

Source
Expand description

Mutation types for CQL write operations

Represents INSERT, UPDATE, DELETE operations as structured mutations. Supports cell-level operations with timestamps and TTL.

This module implements the core data types for M5 write support:

  • Mutation: Represents a write operation (INSERT, UPDATE, DELETE)
  • DecoratedKey: Token + raw key bytes for partition ordering
  • PartitionKey: Multi-column partition key with schema-aware encoding
  • ClusteringKey: Multi-column clustering key with ASC/DESC ordering
  • CellOperation: Cell-level write/delete operations

Structs§

ClusteringKey
Clustering key with multi-column support
DecoratedKey
Decorated key: Murmur3 token + raw partition key bytes
Mutation
A mutation represents a write operation (INSERT, UPDATE, DELETE)
PartitionKey
Partition key with multi-column support
PartitionTombstone
Partition tombstone for deleting entire partition
RangeTombstone
Range tombstone for deleting a range of clustering keys
TableId
Table identifier (keyspace + table name)

Enums§

CellOperation
Operations that can be applied to individual cells within a row.
ClusteringBound
Clustering key bound for range tombstones