diff --git a/modules/lang-painless/src/main/resources/org/opensearch/painless/spi/org.opensearch.derived.txt b/modules/lang-painless/src/main/resources/org/opensearch/painless/spi/org.opensearch.derived.txt index 0fdfa6f6b8883..c219e35001930 100644 --- a/modules/lang-painless/src/main/resources/org/opensearch/painless/spi/org.opensearch.derived.txt +++ b/modules/lang-painless/src/main/resources/org/opensearch/painless/spi/org.opensearch.derived.txt @@ -27,5 +27,5 @@ static_import { void emitDouble(org.opensearch.script.DerivedFieldScript, double) bound_to org.opensearch.script.ScriptEmitValues$Double void emitGeoPoint(org.opensearch.script.DerivedFieldScript, double, double) bound_to org.opensearch.script.ScriptEmitValues$GeoPoint void emitBoolean(org.opensearch.script.DerivedFieldScript, boolean) bound_to org.opensearch.script.ScriptEmitValues$Boolean - void emitString(org.opensearch.script.DerivedFieldScript, String) bound_to org.opensearch.script.ScriptEmitValues$String + void emitString(org.opensearch.script.DerivedFieldScript, String) bound_to org.opensearch.script.ScriptEmitValues$Strings } diff --git a/server/src/main/java/org/opensearch/script/DerivedFieldScript.java b/server/src/main/java/org/opensearch/script/DerivedFieldScript.java index cfc6abe1b46a9..44a31d615e76b 100644 --- a/server/src/main/java/org/opensearch/script/DerivedFieldScript.java +++ b/server/src/main/java/org/opensearch/script/DerivedFieldScript.java @@ -27,7 +27,7 @@ * * @opensearch.internal */ -public class DerivedFieldScript { +public abstract class DerivedFieldScript { public static final String[] PARAMETERS = {}; diff --git a/server/src/main/java/org/opensearch/script/ScriptEmitValues.java b/server/src/main/java/org/opensearch/script/ScriptEmitValues.java index a4ffb53142187..e826a47cccba7 100644 --- a/server/src/main/java/org/opensearch/script/ScriptEmitValues.java +++ b/server/src/main/java/org/opensearch/script/ScriptEmitValues.java @@ -77,11 +77,11 @@ public void emitBoolean(boolean val) { } // Emits a String value - public static final class String { + public static final class Strings { private final DerivedFieldScript derivedFieldScript; - public String(DerivedFieldScript derivedFieldScript) { + public Strings(DerivedFieldScript derivedFieldScript) { this.derivedFieldScript = derivedFieldScript; }