Record Class DataSourceRequest.ObjectMappingParametersGenerator
java.lang.Object
java.lang.Record
org.elasticsearch.datageneration.datasource.DataSourceRequest.ObjectMappingParametersGenerator
- All Implemented Interfaces:
DataSourceRequest<DataSourceResponse.ObjectMappingParametersGenerator>
- Enclosing interface:
DataSourceRequest<TResponse extends DataSourceResponse>
public static record DataSourceRequest.ObjectMappingParametersGenerator(boolean isRoot, boolean isNested, ObjectMapper.Subobjects parentSubobjects)
extends Record
implements DataSourceRequest<DataSourceResponse.ObjectMappingParametersGenerator>
-
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
ConstructorsConstructorDescriptionObjectMappingParametersGenerator(boolean isRoot, boolean isNested, ObjectMapper.Subobjects parentSubobjects) Creates an instance of aObjectMappingParametersGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccept(DataSourceHandler handler) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisNested()Returns the value of theisNestedrecord component.booleanisRoot()Returns the value of theisRootrecord component.Returns the value of theparentSubobjectsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjectMappingParametersGenerator
public ObjectMappingParametersGenerator(boolean isRoot, boolean isNested, ObjectMapper.Subobjects parentSubobjects) Creates an instance of aObjectMappingParametersGeneratorrecord class.- Parameters:
isRoot- the value for theisRootrecord componentisNested- the value for theisNestedrecord componentparentSubobjects- the value for theparentSubobjectsrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceDataSourceRequest<DataSourceResponse.ObjectMappingParametersGenerator>
-
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 '=='. -
isRoot
public boolean isRoot()Returns the value of theisRootrecord component.- Returns:
- the value of the
isRootrecord component
-
isNested
public boolean isNested()Returns the value of theisNestedrecord component.- Returns:
- the value of the
isNestedrecord component
-
parentSubobjects
Returns the value of theparentSubobjectsrecord component.- Returns:
- the value of the
parentSubobjectsrecord component
-