Package org.elasticsearch.ingest
Class ValueSource.MapValue
java.lang.Object
org.elasticsearch.ingest.ValueSource.MapValue
- All Implemented Interfaces:
ValueSource
- Enclosing interface:
- ValueSource
public static final class ValueSource.MapValue extends java.lang.Object implements ValueSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.ValueSource
ValueSource.ByteValue, ValueSource.ListValue, ValueSource.MapValue, ValueSource.ObjectValue, ValueSource.TemplatedValue
-
Method Summary
Modifier and Type Method Description 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.boolean
equals(java.lang.Object o)
int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
copyAndResolve
public java.lang.Object copyAndResolve(java.util.Map<java.lang.String,java.lang.Object> model)Description copied from interface:ValueSource
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.- Specified by:
copyAndResolve
in interfaceValueSource
- Parameters:
model
- The model to be used when resolving any templates- Returns:
- copy of the wrapped value
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-