Class CompositeFieldScript.EmitField

Enclosing class:

public static class CompositeFieldScript.EmitField extends Object
  • Constructor Details

  • Method Details

    • emit

      public void emit(String field, Object value)
      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.
      field - the field name
      value - the value