Skip to content

Commit 02cebe7

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 34c10f5 commit 02cebe7

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/lucene/LuceneQueryExpressionEvaluator.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
* a {@link BooleanVector}.
2828
* @see LuceneQueryScoreEvaluator
2929
*/
30-
public class LuceneQueryExpressionEvaluator extends LuceneQueryEvaluator<BooleanBlock.Builder>
31-
implements
32-
EvalOperator.ExpressionEvaluator {
30+
public class LuceneQueryExpressionEvaluator extends LuceneQueryEvaluator<BooleanBlock.Builder> implements EvalOperator.ExpressionEvaluator {
3331

3432
LuceneQueryExpressionEvaluator(BlockFactory blockFactory, ShardConfig[] shards) {
3533
super(blockFactory, shards);

x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/lucene/LuceneQueryExpressionEvaluatorTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package org.elasticsearch.compute.lucene;
99

1010
import org.apache.lucene.search.Scorable;
11-
import org.elasticsearch.compute.data.Block;
1211
import org.elasticsearch.compute.data.BlockFactory;
1312
import org.elasticsearch.compute.data.BooleanBlock;
1413
import org.elasticsearch.compute.data.Page;

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/capabilities/RewriteableAware.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.elasticsearch.index.query.QueryBuilder;
1111
import org.elasticsearch.xpack.esql.core.expression.Expression;
1212

13-
public interface RewriteableAware extends TranslationAware{
13+
public interface RewriteableAware extends TranslationAware {
1414

1515
QueryBuilder queryBuilder();
1616

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/ExtractSnippets.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public ExpressionEvaluator.Factory toEvaluator(ToEvaluator toEvaluator) {
202202
List<EsPhysicalOperationProviders.ShardContext> shardContexts = toEvaluator.shardContexts();
203203
LuceneQueryEvaluator.ShardConfig[] shardConfigs = new LuceneQueryEvaluator.ShardConfig[shardContexts.size()];
204204

205-
Integer numSnippets = this.numSnippets == null ?DEFAULT_NUM_SNIPPETS : (Integer) this.numSnippets.fold(FoldContext.small());
205+
Integer numSnippets = this.numSnippets == null ? DEFAULT_NUM_SNIPPETS : (Integer) this.numSnippets.fold(FoldContext.small());
206206
Integer snippedSize = this.snippetLength == null ? DEFAULT_SNIPPET_LENGTH : (Integer) this.snippetLength.fold(FoldContext.small());
207207

208208
int i = 0;
@@ -213,7 +213,6 @@ public ExpressionEvaluator.Factory toEvaluator(ToEvaluator toEvaluator) {
213213
throw new IllegalStateException("Missing search context, cannot extract snippets");
214214
}
215215

216-
217216
try {
218217
// TODO: Reduce duplication between this method and TextSimilarityRerankingRankFeaturePhaseRankShardContext#prepareForFetch
219218
HighlightBuilder highlightBuilder = new HighlightBuilder();

0 commit comments

Comments
 (0)