Record Class DataSourceRequest.LeafMappingParametersGenerator
java.lang.Object
java.lang.Record
org.elasticsearch.logsdb.datageneration.datasource.DataSourceRequest.LeafMappingParametersGenerator
- All Implemented Interfaces:
DataSourceRequest<DataSourceResponse.LeafMappingParametersGenerator>
- Enclosing interface:
DataSourceRequest<TResponse extends DataSourceResponse>
public static record DataSourceRequest.LeafMappingParametersGenerator(String fieldName, FieldType fieldType, Set<String> eligibleCopyToFields, DynamicMapping dynamicMapping)
extends Record
implements DataSourceRequest<DataSourceResponse.LeafMappingParametersGenerator>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.logsdb.datageneration.datasource.DataSourceRequest
DataSourceRequest.ArrayWrapper, DataSourceRequest.ByteGenerator, DataSourceRequest.ChildFieldGenerator, DataSourceRequest.DoubleGenerator, DataSourceRequest.DynamicMappingGenerator, DataSourceRequest.FieldTypeGenerator, DataSourceRequest.FloatGenerator, DataSourceRequest.HalfFloatGenerator, DataSourceRequest.IntegerGenerator, DataSourceRequest.LeafMappingParametersGenerator, DataSourceRequest.LongGenerator, DataSourceRequest.NullWrapper, DataSourceRequest.ObjectArrayGenerator, DataSourceRequest.ObjectMappingParametersGenerator, DataSourceRequest.ShortGenerator, DataSourceRequest.StringGenerator, DataSourceRequest.UnsignedLongGenerator -
Constructor Summary
ConstructorsConstructorDescriptionLeafMappingParametersGenerator(String fieldName, FieldType fieldType, Set<String> eligibleCopyToFields, DynamicMapping dynamicMapping) Creates an instance of aLeafMappingParametersGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccept(DataSourceHandler handler) Returns the value of thedynamicMappingrecord component.Returns the value of theeligibleCopyToFieldsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.Returns the value of thefieldTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LeafMappingParametersGenerator
public LeafMappingParametersGenerator(String fieldName, FieldType fieldType, Set<String> eligibleCopyToFields, DynamicMapping dynamicMapping) Creates an instance of aLeafMappingParametersGeneratorrecord class.- Parameters:
fieldName- the value for thefieldNamerecord componentfieldType- the value for thefieldTyperecord componenteligibleCopyToFields- the value for theeligibleCopyToFieldsrecord componentdynamicMapping- the value for thedynamicMappingrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceDataSourceRequest<DataSourceResponse.LeafMappingParametersGenerator>
-
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). -
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
fieldType
Returns the value of thefieldTyperecord component.- Returns:
- the value of the
fieldTyperecord component
-
eligibleCopyToFields
Returns the value of theeligibleCopyToFieldsrecord component.- Returns:
- the value of the
eligibleCopyToFieldsrecord component
-
dynamicMapping
Returns the value of thedynamicMappingrecord component.- Returns:
- the value of the
dynamicMappingrecord component
-