Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Record Class ObjectMapper.MergeResult
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.ObjectMapper.MergeResult
- Enclosing class:
- ObjectMapper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MergeResult
(Explicit<Boolean> enabled, Explicit<Boolean> subObjects, ObjectMapper.Dynamic dynamic, Map<String, Mapper> mappers) Creates an instance of aMergeResult
record class. -
Method Summary
Modifier and TypeMethodDescriptiondynamic()
Returns the value of thedynamic
record component.enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.mappers()
Returns the value of themappers
record component.Returns the value of thesubObjects
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MergeResult
protected MergeResult(Explicit<Boolean> enabled, Explicit<Boolean> subObjects, ObjectMapper.Dynamic dynamic, Map<String, Mapper> mappers) Creates an instance of aMergeResult
record class.- Parameters:
enabled
- the value for theenabled
record componentsubObjects
- the value for thesubObjects
record componentdynamic
- the value for thedynamic
record componentmappers
- the value for themappers
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-
subObjects
Returns the value of thesubObjects
record component.- Returns:
- the value of the
subObjects
record component
-
dynamic
Returns the value of thedynamic
record component.- Returns:
- the value of the
dynamic
record component
-
mappers
Returns the value of themappers
record component.- Returns:
- the value of the
mappers
record component
-