Module org.elasticsearch.server
Record Class IVFVectorsReader.FieldEntry
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.vectors.IVFVectorsReader.FieldEntry
- Enclosing class:
IVFVectorsReader
protected static record IVFVectorsReader.FieldEntry(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, long centroidOffset, long centroidLength, long[] postingListOffsets, float[] globalCentroid, float globalCentroidDp)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldEntry(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, long centroidOffset, long centroidLength, long[] postingListOffsets, float[] globalCentroid, float globalCentroidDp) Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecentroidLengthrecord component.longReturns the value of thecentroidOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.float[]Returns the value of theglobalCentroidrecord component.floatReturns the value of theglobalCentroidDprecord component.final inthashCode()Returns a hash code value for this object.long[]Returns the value of thepostingListOffsetsrecord component.org.apache.lucene.index.VectorSimilarityFunctionReturns the value of thesimilarityFunctionrecord component.final StringtoString()Returns a string representation of this record class.org.apache.lucene.index.VectorEncodingReturns the value of thevectorEncodingrecord component.
-
Constructor Details
-
FieldEntry
protected FieldEntry(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, long centroidOffset, long centroidLength, long[] postingListOffsets, float[] globalCentroid, float globalCentroidDp) Creates an instance of aFieldEntryrecord class.- Parameters:
similarityFunction- the value for thesimilarityFunctionrecord componentvectorEncoding- the value for thevectorEncodingrecord componentcentroidOffset- the value for thecentroidOffsetrecord componentcentroidLength- the value for thecentroidLengthrecord componentpostingListOffsets- the value for thepostingListOffsetsrecord componentglobalCentroid- the value for theglobalCentroidrecord componentglobalCentroidDp- the value for theglobalCentroidDprecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
similarityFunction
public org.apache.lucene.index.VectorSimilarityFunction similarityFunction()Returns the value of thesimilarityFunctionrecord component.- Returns:
- the value of the
similarityFunctionrecord component
-
vectorEncoding
public org.apache.lucene.index.VectorEncoding vectorEncoding()Returns the value of thevectorEncodingrecord component.- Returns:
- the value of the
vectorEncodingrecord component
-
centroidOffset
public long centroidOffset()Returns the value of thecentroidOffsetrecord component.- Returns:
- the value of the
centroidOffsetrecord component
-
centroidLength
public long centroidLength()Returns the value of thecentroidLengthrecord component.- Returns:
- the value of the
centroidLengthrecord component
-
postingListOffsets
public long[] postingListOffsets()Returns the value of thepostingListOffsetsrecord component.- Returns:
- the value of the
postingListOffsetsrecord component
-
globalCentroid
public float[] globalCentroid()Returns the value of theglobalCentroidrecord component.- Returns:
- the value of the
globalCentroidrecord component
-
globalCentroidDp
public float globalCentroidDp()Returns the value of theglobalCentroidDprecord component.- Returns:
- the value of the
globalCentroidDprecord component
-