diff --git a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/MultivalueDedupe.java b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/MultivalueDedupe.java index d30f35742cb02..ea4f9dc1e05a6 100644 --- a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/MultivalueDedupe.java +++ b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/MultivalueDedupe.java @@ -143,15 +143,9 @@ public static BatchEncoder batchEncoder(Block.Ref ref, int batchSize, boolean al } } - private static class EvaluatorFactory implements ExpressionEvaluator.Factory { - private final ExpressionEvaluator.Factory field; - private final BiFunction dedupe; - - protected EvaluatorFactory(ExpressionEvaluator.Factory field, BiFunction dedupe) { - this.field = field; - this.dedupe = dedupe; - } - + private record EvaluatorFactory(ExpressionEvaluator.Factory field, BiFunction dedupe) + implements + ExpressionEvaluator.Factory { @Override public ExpressionEvaluator get(DriverContext context) { return new Evaluator(context.blockFactory(), field.get(context), dedupe);