All Products
Search
Document Center

Tablestore:GroupBySorter

Last Updated:May 10, 2024

GroupBySorter specifies the sorting method of items in a group. You can specify one of the three sorting methods. By default, row_count_sort is used.

Data structure

message GroupBySorter {
    optional GroupKeySort group_key_sort = 1;
    optional RowCountSort row_count_sort = 2;
    optional SubAggSort sub_agg_sort = 3;
}

Parameter

Type

Required

Description

group_key_sort

GroupKeySort

No

Specifies to sort items based on the grouping keys.

row_count_sort

RowCountSort

No

Specifies to sort items based on the order of rows in the group.

sub_agg_sort

SubAggSort

No

Specifies to sort items based on the sub-aggregation results.