Package org.elasticsearch.ingest
Interface ValueSource
-
- All Known Implementing Classes:
ValueSource.ByteValue,ValueSource.ListValue,ValueSource.MapValue,ValueSource.ObjectValue,ValueSource.TemplatedValue
public interface ValueSourceHolds a value. If the value is requested a copy is made and optionally template snippets are resolved too.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classValueSource.ByteValuestatic classValueSource.ListValuestatic classValueSource.MapValuestatic classValueSource.ObjectValuestatic classValueSource.TemplatedValue
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectcopyAndResolve(java.util.Map<java.lang.String,java.lang.Object> model)Returns a copy of the value this ValueSource holds and resolves templates if there're any.static ValueSourcewrap(java.lang.Object value, ScriptService scriptService)
-
-
-
Method Detail
-
copyAndResolve
java.lang.Object copyAndResolve(java.util.Map<java.lang.String,java.lang.Object> model)
Returns a copy of the value this ValueSource holds and resolves templates if there're any. For immutable values only a copy of the reference to the value is made.- Parameters:
model- The model to be used when resolving any templates- Returns:
- copy of the wrapped value
-
wrap
static ValueSource wrap(java.lang.Object value, ScriptService scriptService)
-
-