mutation_partition: add function to return a reference to _rows

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
This commit is contained in:
Raphael S. Carvalho
2015-05-04 12:23:19 -03:00
committed by Avi Kivity
parent f689ef705a
commit 9d7de45ca4

View File

@@ -175,6 +175,8 @@ public:
void apply_row_tombstone(schema_ptr schema, clustering_key_prefix prefix, tombstone t);
void apply(schema_ptr schema, const mutation_partition& p);
row& static_row() { return _static_row; }
// return a set of rows_entry where each entry represents a CQL row sharing the same clustering key.
const rows_type& clustered_rows() const { return _rows; }
const row& static_row() const { return _static_row; }
deletable_row& clustered_row(const clustering_key& key);
row* find_row(const clustering_key& key);