summaryrefslogtreecommitdiff
path: root/core/src/main/java/org/elasticsearch/script/ExecutableScript.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/java/org/elasticsearch/script/ExecutableScript.java')
-rw-r--r--core/src/main/java/org/elasticsearch/script/ExecutableScript.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/main/java/org/elasticsearch/script/ExecutableScript.java b/core/src/main/java/org/elasticsearch/script/ExecutableScript.java
index 0d025c020e..0812b8a360 100644
--- a/core/src/main/java/org/elasticsearch/script/ExecutableScript.java
+++ b/core/src/main/java/org/elasticsearch/script/ExecutableScript.java
@@ -44,4 +44,11 @@ public interface ExecutableScript {
interface Compiled {
ExecutableScript newInstance(Map<String, Object> params);
}
+
+ ScriptContext<Compiled> CONTEXT = new ScriptContext<>("executable", Compiled.class);
+
+ // TODO: remove these once each has its own script interface
+ ScriptContext<Compiled> AGGS_CONTEXT = new ScriptContext<>("aggs_executable", Compiled.class);
+ ScriptContext<Compiled> UPDATE_CONTEXT = new ScriptContext<>("update", Compiled.class);
+ ScriptContext<Compiled> INGEST_CONTEXT = new ScriptContext<>("ingest", Compiled.class);
}