public abstract class AbstractScalarScriptFactory
extends java.lang.Object
implements org.elasticsearch.script.NativeScriptFactory
where argument can be one of:
{ "value": "bla", "type": 1 }
{ "scalar_name": "my_scalar", "args": [argument, ...], "type": 1 }
{ "field_name": "name", "type": 3 }
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractScalarScriptFactory.Context |
static class |
AbstractScalarScriptFactory.LiteralArgument
wrapper for literals or references (name and type)
|
static class |
AbstractScalarScriptFactory.ReferenceArgument
wrapper for references
|
static class |
AbstractScalarScriptFactory.ScalarArgument
wrapper for scalar function with included arguments
|
Constructor and Description |
---|
AbstractScalarScriptFactory(Functions functions) |
Modifier and Type | Method and Description |
---|---|
protected io.crate.operation.scalar.elasticsearch.script.AbstractScalarScriptFactory.WrappedArgument |
getArgument(java.util.Map<java.lang.String,java.lang.Object> argSpec) |
protected Scalar |
getScalar(java.lang.String name,
java.util.List<DataType> argumentTypes) |
protected final Functions functions
public AbstractScalarScriptFactory(Functions functions)