Skip to content

Commit fd6f71c

Browse files
committed
small
1 parent 756e0b0 commit fd6f71c

File tree

6 files changed

+0
-59
lines changed

6 files changed

+0
-59
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/MaxBytesRefAggregator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ public static void combineIntermediate(GroupingState state, int groupId, BytesRe
6262
}
6363
}
6464

65-
public static void combineStates(GroupingState state, int groupId, GroupingState otherState, int otherGroupId) {
66-
state.combine(groupId, otherState, otherGroupId);
67-
}
68-
6965
public static Block evaluateFinal(GroupingState state, IntVector selected, DriverContext driverContext) {
7066
return state.toBlock(selected, driverContext);
7167
}
@@ -83,12 +79,6 @@ public void add(int groupId, BytesRef value) {
8379
}
8480
}
8581

86-
public void combine(int groupId, GroupingState otherState, int otherGroupId) {
87-
if (otherState.internalState.hasValue(otherGroupId)) {
88-
add(groupId, otherState.internalState.get(otherGroupId));
89-
}
90-
}
91-
9282
@Override
9383
public void toIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) {
9484
internalState.toIntermediate(blocks, offset, selected, driverContext);

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/MaxIpAggregator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public static void combineIntermediate(GroupingState state, int groupId, BytesRe
5858
}
5959
}
6060

61-
public static void combineStates(GroupingState state, int groupId, GroupingState otherState, int otherGroupId) {
62-
state.combine(groupId, otherState, otherGroupId);
63-
}
64-
6561
public static Block evaluateFinal(GroupingState state, IntVector selected, DriverContext driverContext) {
6662
return state.toBlock(selected, driverContext);
6763
}
@@ -80,12 +76,6 @@ public void add(int groupId, BytesRef value) {
8076
}
8177
}
8278

83-
public void combine(int groupId, GroupingState otherState, int otherGroupId) {
84-
if (otherState.internalState.hasValue(otherGroupId)) {
85-
add(groupId, otherState.internalState.get(otherGroupId, otherState.scratch));
86-
}
87-
}
88-
8979
@Override
9080
public void toIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) {
9181
internalState.toIntermediate(blocks, offset, selected, driverContext);

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/MinBytesRefAggregator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ public static void combineIntermediate(GroupingState state, int groupId, BytesRe
6262
}
6363
}
6464

65-
public static void combineStates(GroupingState state, int groupId, GroupingState otherState, int otherGroupId) {
66-
state.combine(groupId, otherState, otherGroupId);
67-
}
68-
6965
public static Block evaluateFinal(GroupingState state, IntVector selected, DriverContext driverContext) {
7066
return state.toBlock(selected, driverContext);
7167
}
@@ -83,12 +79,6 @@ public void add(int groupId, BytesRef value) {
8379
}
8480
}
8581

86-
public void combine(int groupId, GroupingState otherState, int otherGroupId) {
87-
if (otherState.internalState.hasValue(otherGroupId)) {
88-
add(groupId, otherState.internalState.get(otherGroupId));
89-
}
90-
}
91-
9282
@Override
9383
public void toIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) {
9484
internalState.toIntermediate(blocks, offset, selected, driverContext);

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/MinIpAggregator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ public static void combineIntermediate(GroupingState state, int groupId, BytesRe
5858
}
5959
}
6060

61-
public static void combineStates(GroupingState state, int groupId, GroupingState otherState, int otherGroupId) {
62-
state.combine(groupId, otherState, otherGroupId);
63-
}
64-
6561
public static Block evaluateFinal(GroupingState state, IntVector selected, DriverContext driverContext) {
6662
return state.toBlock(selected, driverContext);
6763
}
@@ -80,12 +76,6 @@ public void add(int groupId, BytesRef value) {
8076
}
8177
}
8278

83-
public void combine(int groupId, GroupingState otherState, int otherGroupId) {
84-
if (otherState.internalState.hasValue(otherGroupId)) {
85-
add(groupId, otherState.internalState.get(otherGroupId, otherState.scratch));
86-
}
87-
}
88-
8979
@Override
9080
public void toIntermediate(Block[] blocks, int offset, IntVector selected, DriverContext driverContext) {
9181
internalState.toIntermediate(blocks, offset, selected, driverContext);

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/SumDoubleAggregator.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ public static void combine(GroupingSumState current, int groupId, double v) {
6969
current.add(v, groupId);
7070
}
7171

72-
public static void combineStates(GroupingSumState current, int groupId, GroupingSumState state, int statePosition) {
73-
if (state.hasValue(statePosition)) {
74-
current.add(state.values.get(statePosition), state.deltas.get(statePosition), groupId);
75-
}
76-
}
77-
7872
public static void combineIntermediate(GroupingSumState current, int groupId, double inValue, double inDelta, boolean seen) {
7973
if (seen) {
8074
current.add(inValue, inDelta, groupId);

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/ValuesBooleanAggregator.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,6 @@ public static void combineIntermediate(GroupingState state, int groupId, Boolean
6666
}
6767
}
6868

69-
public static void combineStates(GroupingState current, int currentGroupId, GroupingState state, int statePosition) {
70-
long stateOffset = ((long) statePosition) << 1;
71-
boolean seenFalse = state.values.get(stateOffset);
72-
boolean seenTrue = state.values.get(stateOffset | 1);
73-
74-
if (seenFalse) {
75-
combine(current, currentGroupId, false);
76-
}
77-
if (seenTrue) {
78-
combine(current, currentGroupId, true);
79-
}
80-
}
81-
8269
public static Block evaluateFinal(GroupingState state, IntVector selected, DriverContext driverContext) {
8370
return state.toBlock(driverContext.blockFactory(), selected);
8471
}

0 commit comments

Comments
 (0)