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, int numCentroids, long centroidOffset, long centroidLength, long postingListOffset, long postingListLength, float[] globalCentroid, float globalCentroidDp)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldEntry(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, int numCentroids, long centroidOffset, long centroidLength, long postingListOffset, long postingListLength, 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.intReturns the value of thenumCentroidsrecord component.longReturns the value of thepostingListLengthrecord component.longReturns the value of thepostingListOffsetrecord 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, int numCentroids, long centroidOffset, long centroidLength, long postingListOffset, long postingListLength, float[] globalCentroid, float globalCentroidDp) Creates an instance of aFieldEntryrecord class.- Parameters:
similarityFunction- the value for thesimilarityFunctionrecord componentvectorEncoding- the value for thevectorEncodingrecord componentnumCentroids- the value for thenumCentroidsrecord componentcentroidOffset- the value for thecentroidOffsetrecord componentcentroidLength- the value for thecentroidLengthrecord componentpostingListOffset- the value for thepostingListOffsetrecord componentpostingListLength- the value for thepostingListLengthrecord 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
-
numCentroids
public int numCentroids()Returns the value of thenumCentroidsrecord component.- Returns:
- the value of the
numCentroidsrecord 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
-
postingListOffset
public long postingListOffset()Returns the value of thepostingListOffsetrecord component.- Returns:
- the value of the
postingListOffsetrecord component
-
postingListLength
public long postingListLength()Returns the value of thepostingListLengthrecord component.- Returns:
- the value of the
postingListLengthrecord 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
-