Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
* are ever collected.
* </p>
* <p>
* The generation code will also look for a method called {@code combineValueCount}
* which is called once per received block with a count of values. NOTE: We may
* not need this after we convert AVG into a composite operation.
* </p>
* <p>
* The generation code also looks for the optional methods {@code combineIntermediate}
* and {@code evaluateFinal} which are used to combine intermediate states and
* produce the final output. If the first is missing then the generated code will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public class AggregatorImplementer {
private final List<TypeMirror> warnExceptions;
private final ExecutableElement init;
private final ExecutableElement combine;
private final ExecutableElement combineValueCount;
private final ExecutableElement combineIntermediate;
private final ExecutableElement evaluateFinal;
private final ClassName implementation;
Expand Down Expand Up @@ -115,7 +114,6 @@ public AggregatorImplementer(
TypeName firstParamType = TypeName.get(e.getParameters().get(0).asType());
return firstParamType.isPrimitive() || firstParamType.toString().equals(stateType.toString());
});
this.combineValueCount = findMethod(declarationType, "combineValueCount");
this.combineIntermediate = findMethod(declarationType, "combineIntermediate");
this.evaluateFinal = findMethod(declarationType, "evaluateFinal");
this.createParameters = init.getParameters()
Expand Down Expand Up @@ -415,9 +413,6 @@ private MethodSpec addRawVector(boolean masked) {
combineRawInput(builder, "vector");
}
builder.endControlFlow();
if (combineValueCount != null) {
builder.addStatement("$T.combineValueCount(state, vector.getPositionCount())", declarationType);
}
return builder.build();
}

Expand Down Expand Up @@ -459,9 +454,6 @@ private MethodSpec addRawBlock(boolean masked) {
}
}
builder.endControlFlow();
if (combineValueCount != null) {
builder.addStatement("$T.combineValueCount(state, block.getTotalValueCount())", declarationType);
}
return builder.build();
}

Expand Down