Record Class DataSourceRequest.FieldDataGenerator
java.lang.Object
java.lang.Record
org.elasticsearch.datageneration.datasource.DataSourceRequest.FieldDataGenerator
- All Implemented Interfaces:
DataSourceRequest<DataSourceResponse.FieldDataGenerator>
- Enclosing interface:
DataSourceRequest<TResponse extends DataSourceResponse>
public static record DataSourceRequest.FieldDataGenerator(String fieldName, String fieldType, DataSource dataSource)
extends Record
implements DataSourceRequest<DataSourceResponse.FieldDataGenerator>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.datageneration.datasource.DataSourceRequest
DataSourceRequest.AggregateMetricDoubleGenerator, DataSourceRequest.ArrayWrapper, DataSourceRequest.BooleanGenerator, DataSourceRequest.ByteGenerator, DataSourceRequest.ChildFieldGenerator, DataSourceRequest.DoubleGenerator, DataSourceRequest.DynamicMappingGenerator, DataSourceRequest.FieldDataGenerator, DataSourceRequest.FieldTypeGenerator, DataSourceRequest.FloatGenerator, DataSourceRequest.GeoPointGenerator, DataSourceRequest.GeoShapeGenerator, DataSourceRequest.HalfFloatGenerator, DataSourceRequest.InstantGenerator, DataSourceRequest.IntegerGenerator, DataSourceRequest.IpGenerator, DataSourceRequest.LeafMappingParametersGenerator, DataSourceRequest.LongGenerator, DataSourceRequest.MalformedWrapper, DataSourceRequest.NullWrapper, DataSourceRequest.ObjectArrayGenerator, DataSourceRequest.ObjectMappingParametersGenerator, DataSourceRequest.PointGenerator, DataSourceRequest.RepeatingWrapper, DataSourceRequest.ShapeGenerator, DataSourceRequest.ShortGenerator, DataSourceRequest.StringGenerator, DataSourceRequest.TransformWeightedWrapper<T>, DataSourceRequest.TransformWrapper, DataSourceRequest.UnsignedLongGenerator, DataSourceRequest.VersionStringGenerator -
Constructor Summary
ConstructorsConstructorDescriptionFieldDataGenerator(String fieldName, String fieldType, DataSource dataSource) Creates an instance of aFieldDataGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccept(DataSourceHandler handler) Returns the value of thedataSourcerecord 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
-
FieldDataGenerator
Creates an instance of aFieldDataGeneratorrecord class.- Parameters:
fieldName- the value for thefieldNamerecord componentfieldType- the value for thefieldTyperecord componentdataSource- the value for thedataSourcerecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceDataSourceRequest<DataSourceResponse.FieldDataGenerator>
-
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
-
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-