Skip to content

Commit 2d4bf70

Browse files
committed
smaller changes
1 parent 2e3782a commit 2d4bf70

File tree

248 files changed

+287
-2485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+287
-2485
lines changed

x-pack/plugin/esql/compute/gen/src/main/java/org/elasticsearch/compute/gen/EvaluatorImplementer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ private MethodSpec realEval(boolean blockStyle) {
287287
}
288288

289289
private void realEvalWithVectorizedStyle(MethodSpec.Builder builder, ClassName resultDataType) {
290-
BiConsumer<Object, String> innerLoop = (start, end) -> {
291-
builder.beginControlFlow("for (int p = " + start + "; p < " + end + "; p++)");
290+
BiConsumer<String, Object[]> innerLoop = (label, bounds) -> {
291+
builder.beginControlFlow(label + "for (int p = " + bounds[0] + "; p < " + bounds[1] + "; p++)");
292292
{
293293
processFunction.args.forEach(a -> a.unpackValues(builder, false));
294294
StringBuilder pattern = new StringBuilder();
@@ -315,7 +315,7 @@ private void realEvalWithVectorizedStyle(MethodSpec.Builder builder, ClassName r
315315
builder.endControlFlow();
316316
};
317317
if (executionCost == 0) {
318-
innerLoop.accept(0, "positionCount");
318+
innerLoop.accept("position: ", new Object[] { 0, "positionCount" });
319319
} else {
320320
// generate tight loops to allow vectorization
321321
builder.addStatement(
@@ -326,7 +326,7 @@ private void realEvalWithVectorizedStyle(MethodSpec.Builder builder, ClassName r
326326
{
327327
builder.addStatement("int end = start + Math.min(positionCount - start, maxBatchSize)");
328328
builder.addStatement("driverContext.checkForEarlyTermination()");
329-
innerLoop.accept("start", "end");
329+
innerLoop.accept("", new Object[] { "start", "end" });
330330
builder.addStatement("start = end");
331331
}
332332
builder.endControlFlow();

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/evaluator/predicate/operator/logical/NotEvaluator.java

Lines changed: 2 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/GreatestBooleanEvaluator.java

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/GreatestBytesRefEvaluator.java

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/GreatestDoubleEvaluator.java

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/GreatestIntEvaluator.java

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/GreatestLongEvaluator.java

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/LeastBooleanEvaluator.java

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/generated/org/elasticsearch/xpack/esql/expression/function/scalar/conditional/LeastBytesRefEvaluator.java

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)