Module org.elasticsearch.server
Record Class DenseVectorFieldMapper.RescoreVector
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.RescoreVector
- All Implemented Interfaces:
ToXContent,ToXContentObject
- Enclosing class:
DenseVectorFieldMapper
public static record DenseVectorFieldMapper.RescoreVector(float oversample)
extends Record
implements ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRescoreVector(float oversample) Creates an instance of aRescoreVectorrecord 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.floatReturns the value of theoversamplerecord component.final StringtoString()Returns a string representation of this record class.toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RescoreVector
public RescoreVector(float oversample) Creates an instance of aRescoreVectorrecord class.- Parameters:
oversample- the value for theoversamplerecord component
-
-
Method Details
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
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 with '=='. -
oversample
public float oversample()Returns the value of theoversamplerecord component.- Returns:
- the value of the
oversamplerecord component
-