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
protected static record ObjectMapper.MergeResult(Explicit<Boolean> enabled, Optional<ObjectMapper.Subobjects> subObjects, Optional<Mapper.SourceKeepMode> sourceKeepMode, ObjectMapper.Dynamic dynamic, Map<String,Mapper> mappers)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMergeResult(Explicit<Boolean> enabled, Optional<ObjectMapper.Subobjects> subObjects, Optional<Mapper.SourceKeepMode> sourceKeepMode, ObjectMapper.Dynamic dynamic, Map<String, Mapper> mappers) Creates an instance of aMergeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondynamic()Returns the value of thedynamicrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mappers()Returns the value of themappersrecord component.Returns the value of thesourceKeepModerecord component.Returns the value of thesubObjectsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MergeResult
protected MergeResult(Explicit<Boolean> enabled, Optional<ObjectMapper.Subobjects> subObjects, Optional<Mapper.SourceKeepMode> sourceKeepMode, ObjectMapper.Dynamic dynamic, Map<String, Mapper> mappers) Creates an instance of aMergeResultrecord class.- Parameters:
enabled- the value for theenabledrecord componentsubObjects- the value for thesubObjectsrecord componentsourceKeepMode- the value for thesourceKeepModerecord componentdynamic- the value for thedynamicrecord componentmappers- the value for themappersrecord 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 theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
subObjects
Returns the value of thesubObjectsrecord component.- Returns:
- the value of the
subObjectsrecord component
-
sourceKeepMode
Returns the value of thesourceKeepModerecord component.- Returns:
- the value of the
sourceKeepModerecord component
-
dynamic
Returns the value of thedynamicrecord component.- Returns:
- the value of the
dynamicrecord component
-
mappers
Returns the value of themappersrecord component.- Returns:
- the value of the
mappersrecord component
-