Record Class DataSourceRequest.TransformWrapper
java.lang.Object
java.lang.Record
org.elasticsearch.datageneration.datasource.DataSourceRequest.TransformWrapper
- All Implemented Interfaces:
DataSourceRequest<DataSourceResponse.TransformWrapper>
- Enclosing interface:
DataSourceRequest<TResponse extends DataSourceResponse>
public static record DataSourceRequest.TransformWrapper(double transformedProportion, Function<Object,Object> transformation)
extends Record
implements DataSourceRequest<DataSourceResponse.TransformWrapper>
-
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
ConstructorsConstructorDescriptionTransformWrapper(double transformedProportion, Function<Object, Object> transformation) Creates an instance of aTransformWrapperrecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationrecord component.doubleReturns the value of thetransformedProportionrecord component.
-
Constructor Details
-
TransformWrapper
Creates an instance of aTransformWrapperrecord class.- Parameters:
transformedProportion- the value for thetransformedProportionrecord componenttransformation- the value for thetransformationrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceDataSourceRequest<DataSourceResponse.TransformWrapper>
-
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 '=='. -
transformedProportion
public double transformedProportion()Returns the value of thetransformedProportionrecord component.- Returns:
- the value of the
transformedProportionrecord component
-
transformation
Returns the value of thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-