From 9d7de45ca4fe41158b22bb5042ae5b677301b2b5 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Mon, 4 May 2015 12:23:19 -0300 Subject: [PATCH] mutation_partition: add function to return a reference to _rows Signed-off-by: Raphael S. Carvalho Reviewed-by: Nadav Har'El --- mutation_partition.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mutation_partition.hh b/mutation_partition.hh index 956faa9e44..e23ede47a6 100644 --- a/mutation_partition.hh +++ b/mutation_partition.hh @@ -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);