From e27fa712f59926af250a8f4faf0cd9bed040686d Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Thu, 23 Mar 2017 11:28:27 +0100 Subject: [PATCH] position_in_partition: Add factory methods for positions around all rows --- streamed_mutation.hh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/streamed_mutation.hh b/streamed_mutation.hh index 6bdaae5335..c082633c3d 100644 --- a/streamed_mutation.hh +++ b/streamed_mutation.hh @@ -412,6 +412,14 @@ public: } } + static position_in_partition before_all_clustered_rows() { + return {position_in_partition::range_tag_t(), bound_view::bottom()}; + } + + static position_in_partition after_all_clustered_rows() { + return {position_in_partition::range_tag_t(), bound_view::top()}; + } + bool is_static_row() const { return !_ck; } bool is_clustering_row() const { return _ck && !_bound_weight; } @@ -605,7 +613,7 @@ public: static position_range full() { return { position_in_partition(position_in_partition::static_row_tag_t()), - position_in_partition(position_in_partition::range_tag_t(), bound_view::top()) + position_in_partition::after_all_clustered_rows() }; }