Package org.elasticsearch.script
Class CompositeFieldScript.EmitField
java.lang.Object
org.elasticsearch.script.CompositeFieldScript.EmitField
- Enclosing class:
- CompositeFieldScript
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EmitField
-
-
Method Details
-
emit
Emits a value for the provided field. Note that ideally we would have typed the value, and have one emit per supported data type, but the arity in Painless does not take arguments type into account, only method name and number of arguments. That means that we would have needed a different method name per type, and given that we need the Object variant anyways to be able to emit an entire map, we went for taking an object also for the keyed emit variant.- Parameters:
field
- the field namevalue
- the value
-