Skip to content

Commit d01184b

Browse files
committed
Renam
1 parent 15eb5e9 commit d01184b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/blockloader/BlockLoaderExpression.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public interface BlockLoaderExpression {
4545
* "fusing" the expression into the load. Or null if the fusion isn't possible.
4646
*/
4747
@Nullable
48-
FusedExpression tryFuse(SearchStats stats);
48+
FusedBlockLoaderExpression tryFuse(SearchStats stats);
4949

5050
/**
51-
* Fused load configuration.
51+
* Expression "fused" to the block loader.
5252
* @param field the field whose load we're fusing into
53-
* @param config the fusion configuration
53+
* @param config the expression's configuration
5454
*/
55-
record FusedExpression(FieldAttribute field, BlockLoaderFunctionConfig config) {}
55+
record FusedBlockLoaderExpression(FieldAttribute field, BlockLoaderFunctionConfig config) {}
5656
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ public ExpressionEvaluator.Factory toEvaluator(ToEvaluator toEvaluator) {
9898
}
9999

100100
@Override
101-
public FusedExpression tryFuse(SearchStats stats) {
101+
public FusedBlockLoaderExpression tryFuse(SearchStats stats) {
102102
if (field instanceof FieldAttribute f) {
103103
if (stats.hasDocValues(f.fieldName()) == false) {
104104
return null;
105105
}
106106
BlockLoaderWarnings warnings = new BlockLoaderWarnings(DriverContext.WarningsMode.COLLECT, source());
107-
return new FusedExpression(f, new BlockLoaderFunctionConfig.Named("LENGTH", warnings));
107+
return new FusedBlockLoaderExpression(f, new BlockLoaderFunctionConfig.Named("LENGTH", warnings));
108108
}
109109
return null;
110110
}

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/VectorSimilarityFunction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void close() {
208208
}
209209

210210
@Override
211-
public final FusedExpression tryFuse(SearchStats stats) {
211+
public final FusedBlockLoaderExpression tryFuse(SearchStats stats) {
212212
// Bail if we're not directly comparing a field with a literal.
213213
Literal literal;
214214
FieldAttribute field;
@@ -233,7 +233,7 @@ public final FusedExpression tryFuse(SearchStats stats) {
233233
vectorArray[i] = ((Number) vectorList.get(i)).floatValue();
234234
}
235235

236-
return new FusedExpression(field, new DenseVectorFieldMapper.VectorSimilarityFunctionConfig(getSimilarityFunction(), vectorArray));
236+
return new FusedBlockLoaderExpression(field, new DenseVectorFieldMapper.VectorSimilarityFunctionConfig(getSimilarityFunction(), vectorArray));
237237
}
238238

239239
interface VectorValueProvider extends Releasable {

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/local/FuseExpressionToFieldLoad.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected LogicalPlan rule(LogicalPlan plan, LocalLogicalOptimizerContext contex
4949
Map<Attribute.IdIgnoringWrapper, Attribute> addedAttrs = new HashMap<>();
5050
LogicalPlan transformedPlan = plan.transformExpressionsOnly(Expression.class, e -> {
5151
if (e instanceof BlockLoaderExpression ble) {
52-
BlockLoaderExpression.FusedExpression fuse = ble.tryFuse(context.searchStats());
52+
BlockLoaderExpression.FusedBlockLoaderExpression fuse = ble.tryFuse(context.searchStats());
5353
if (fuse != null) {
5454
return replaceFieldsForFieldTransformations(e, addedAttrs, fuse);
5555
}
@@ -85,7 +85,7 @@ protected LogicalPlan rule(LogicalPlan plan, LocalLogicalOptimizerContext contex
8585
private static Expression replaceFieldsForFieldTransformations(
8686
Expression e,
8787
Map<Attribute.IdIgnoringWrapper, Attribute> addedAttrs,
88-
BlockLoaderExpression.FusedExpression fuse
88+
BlockLoaderExpression.FusedBlockLoaderExpression fuse
8989
) {
9090
// Change the similarity function to a reference of a transformation on the field
9191
FunctionEsField functionEsField = new FunctionEsField(fuse.field().field(), e.dataType(), fuse.config());

0 commit comments

Comments
 (0)