Module org.elasticsearch.server
Record Class IVFVectorsWriter.CentroidOffsetAndLength
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.vectors.diskbbq.IVFVectorsWriter.CentroidOffsetAndLength
- Enclosing class:
IVFVectorsWriter
public static record IVFVectorsWriter.CentroidOffsetAndLength(org.apache.lucene.util.LongValues offsets, org.apache.lucene.util.LongValues lengths)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCentroidOffsetAndLength(org.apache.lucene.util.LongValues offsets, org.apache.lucene.util.LongValues lengths) Creates an instance of aCentroidOffsetAndLengthrecord 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.org.apache.lucene.util.LongValueslengths()Returns the value of thelengthsrecord component.org.apache.lucene.util.LongValuesoffsets()Returns the value of theoffsetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CentroidOffsetAndLength
public CentroidOffsetAndLength(org.apache.lucene.util.LongValues offsets, org.apache.lucene.util.LongValues lengths) Creates an instance of aCentroidOffsetAndLengthrecord class.- Parameters:
offsets- the value for theoffsetsrecord componentlengths- the value for thelengthsrecord 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). -
offsets
public org.apache.lucene.util.LongValues offsets()Returns the value of theoffsetsrecord component.- Returns:
- the value of the
offsetsrecord component
-
lengths
public org.apache.lucene.util.LongValues lengths()Returns the value of thelengthsrecord component.- Returns:
- the value of the
lengthsrecord component
-