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
ConstructorsModifierConstructorDescriptionprotected
BuilderParams
(FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, Optional<Mapper.SourceKeepMode> sourceKeepMode, boolean hasScript, OnScriptError onScriptError) Creates an instance of aBuilderParams
record class. -
Method Summary
Modifier and TypeMethodDescriptioncopyTo()
Returns the value of thecopyTo
record component.static FieldMapper.BuilderParams
empty()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehasScript
record component.Returns the value of themultiFields
record component.Returns the value of theonScriptError
record component.Returns the value of thesourceKeepMode
record component.final String
toString()
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 aBuilderParams
record class.- Parameters:
multiFields
- the value for themultiFields
record componentcopyTo
- the value for thecopyTo
record componentsourceKeepMode
- the value for thesourceKeepMode
record componenthasScript
- the value for thehasScript
record componentonScriptError
- the value for theonScriptError
record 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 themultiFields
record component.- Returns:
- the value of the
multiFields
record component
-
copyTo
Returns the value of thecopyTo
record component.- Returns:
- the value of the
copyTo
record component
-
sourceKeepMode
Returns the value of thesourceKeepMode
record component.- Returns:
- the value of the
sourceKeepMode
record component
-
hasScript
public boolean hasScript()Returns the value of thehasScript
record component.- Returns:
- the value of the
hasScript
record component
-
onScriptError
Returns the value of theonScriptError
record component.- Returns:
- the value of the
onScriptError
record component
-