Record Class DataSourceResponse.ObjectArrayGenerator
java.lang.Object
java.lang.Record
org.elasticsearch.datageneration.datasource.DataSourceResponse.ObjectArrayGenerator
- All Implemented Interfaces:
DataSourceResponse
- Enclosing interface:
DataSourceResponse
public static record DataSourceResponse.ObjectArrayGenerator(Supplier<Optional<Integer>> lengthGenerator)
extends Record
implements DataSourceResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.datageneration.datasource.DataSourceResponse
DataSourceResponse.AggregateMetricDoubleGenerator, DataSourceResponse.ArrayWrapper, DataSourceResponse.BooleanGenerator, DataSourceResponse.ByteGenerator, DataSourceResponse.ChildFieldGenerator, DataSourceResponse.DoubleGenerator, DataSourceResponse.DynamicMappingGenerator, DataSourceResponse.FieldDataGenerator, DataSourceResponse.FieldTypeGenerator, DataSourceResponse.FloatGenerator, DataSourceResponse.GeoPointGenerator, DataSourceResponse.GeoShapeGenerator, DataSourceResponse.HalfFloatGenerator, DataSourceResponse.InstantGenerator, DataSourceResponse.IntegerGenerator, DataSourceResponse.IpGenerator, DataSourceResponse.LeafMappingParametersGenerator, DataSourceResponse.LongGenerator, DataSourceResponse.MalformedWrapper, DataSourceResponse.NullWrapper, DataSourceResponse.ObjectArrayGenerator, DataSourceResponse.ObjectMappingParametersGenerator, DataSourceResponse.PointGenerator, DataSourceResponse.RepeatingWrapper, DataSourceResponse.ShapeGenerator, DataSourceResponse.ShortGenerator, DataSourceResponse.StringGenerator, DataSourceResponse.TransformWeightedWrapper, DataSourceResponse.TransformWrapper, DataSourceResponse.UnsignedLongGenerator, DataSourceResponse.VersionStringGenerator -
Constructor Summary
ConstructorsConstructorDescriptionObjectArrayGenerator(Supplier<Optional<Integer>> lengthGenerator) Creates an instance of aObjectArrayGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelengthGeneratorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjectArrayGenerator
Creates an instance of aObjectArrayGeneratorrecord class.- Parameters:
lengthGenerator- the value for thelengthGeneratorrecord 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). -
lengthGenerator
Returns the value of thelengthGeneratorrecord component.- Returns:
- the value of the
lengthGeneratorrecord component
-