org.elasticsearch.script.ScriptCompiler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch Show documentation
Show all versions of elasticsearch Show documentation
Elasticsearch - Open Source, Distributed, RESTful Search Engine
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
package org.elasticsearch.script;
/**
* Takes a Script definition and returns a compiled script factory
*/
public interface ScriptCompiler {
/**
* Takes a Script definition and returns a compiled script factory
* @param script the Script to compile
* @param scriptContext the ScriptContext defining how to compile the script
* @param the class of the compiled Script factory
* @return a Script factory
*/
T compile(Script script, ScriptContext scriptContext);
ScriptCompiler NONE = new ScriptCompiler() {
@Override
public T compile(Script script, ScriptContext scriptContext) {
throw new UnsupportedOperationException();
}
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy