summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-03-16 11:00:36 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-03-16 11:00:36 +0000
commit8de120cd4d702151528bcc4b15ee459532359211 (patch)
treee3201677ae98e5d7e4e2c7d95b53871c505c22fb /searchlib
parent86bd7f85ee0f24dfb62a4c20da464d1bcb390bfa (diff)
Keep private access.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/grouping/grouping_test.cpp1
-rw-r--r--searchlib/src/vespa/searchlib/aggregation/group.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/searchlib/src/tests/grouping/grouping_test.cpp b/searchlib/src/tests/grouping/grouping_test.cpp
index d1430322c26..94d3afd619b 100644
--- a/searchlib/src/tests/grouping/grouping_test.cpp
+++ b/searchlib/src/tests/grouping/grouping_test.cpp
@@ -307,7 +307,6 @@ void
Test::testAggregationSimple()
{
EXPECT_EQUAL(64u, sizeof(Group));
- EXPECT_EQUAL(40u, sizeof(Group::Value));
AggregationContext ctx;
ctx.result().add(0).add(1).add(2);
ctx.add(IntAttrBuilder("int").add(3).add(7).add(15).sp());
diff --git a/searchlib/src/vespa/searchlib/aggregation/group.h b/searchlib/src/vespa/searchlib/aggregation/group.h
index 2c0e72b543b..f6b6bc732af 100644
--- a/searchlib/src/vespa/searchlib/aggregation/group.h
+++ b/searchlib/src/vespa/searchlib/aggregation/group.h
@@ -58,6 +58,8 @@ public:
using GroupingLevelList = std::vector<GroupingLevel>;
+private:
+
class Value {
public:
Value();
@@ -152,7 +154,7 @@ public:
uint8_t _packedLength; // Length of aggr and expr vectors.
uint8_t _orderBy[2]; // How this group is ranked, negative means reverse rank.
};
-private:
+
ResultNode::CP _id; // the label of this group, separating it from other groups
RawRank _rank; // The default rank taken from the highest hit relevance.
Value _aggr;