Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Record Class FieldMapper.BuilderParams
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.FieldMapper.BuilderParams
- Record Components:
multiFields- sub fields of this mappercopyTo- copyTo fields of this mappersourceKeepMode- mode for storing the field source in synthetic source modehasScript- whether a script is defined for the fieldonScriptError- the behaviour for when the defined script fails at runtime
- Enclosing class:
FieldMapper
protected static record FieldMapper.BuilderParams(FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, Optional<Mapper.SourceKeepMode> sourceKeepMode, boolean hasScript, OnScriptError onScriptError)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilderParams(FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, Optional<Mapper.SourceKeepMode> sourceKeepMode, boolean hasScript, OnScriptError onScriptError) Creates an instance of aBuilderParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncopyTo()Returns the value of thecopyTorecord component.static FieldMapper.BuilderParamsempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasScriptrecord component.Returns the value of themultiFieldsrecord component.Returns the value of theonScriptErrorrecord component.Returns the value of thesourceKeepModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuilderParams
protected BuilderParams(FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, Optional<Mapper.SourceKeepMode> sourceKeepMode, boolean hasScript, OnScriptError onScriptError) Creates an instance of aBuilderParamsrecord class.- Parameters:
multiFields- the value for themultiFieldsrecord componentcopyTo- the value for thecopyTorecord componentsourceKeepMode- the value for thesourceKeepModerecord componenthasScript- the value for thehasScriptrecord componentonScriptError- the value for theonScriptErrorrecord component
-
-
Method Details
-
empty
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
multiFields
Returns the value of themultiFieldsrecord component.- Returns:
- the value of the
multiFieldsrecord component
-
copyTo
Returns the value of thecopyTorecord component.- Returns:
- the value of the
copyTorecord component
-
sourceKeepMode
Returns the value of thesourceKeepModerecord component.- Returns:
- the value of the
sourceKeepModerecord component
-
hasScript
public boolean hasScript()Returns the value of thehasScriptrecord component.- Returns:
- the value of the
hasScriptrecord component
-
onScriptError
Returns the value of theonScriptErrorrecord component.- Returns:
- the value of the
onScriptErrorrecord component
-