Record Class Lucene90HnswVectorsReader.FieldEntry
java.lang.Object
java.lang.Record
org.apache.lucene.backward_codecs.lucene90.Lucene90HnswVectorsReader.FieldEntry
- Enclosing class:
Lucene90HnswVectorsReader
private static record Lucene90HnswVectorsReader.FieldEntry(VectorSimilarityFunction similarityFunction, long vectorDataOffset, long vectorDataLength, long indexDataOffset, long indexDataLength, int dimension, int[] ordToDoc, long[] ordOffsets)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedimensionrecord component.private final longThe field for theindexDataLengthrecord component.private final longThe field for theindexDataOffsetrecord component.private final long[]The field for theordOffsetsrecord component.private final int[]The field for theordToDocrecord component.private final VectorSimilarityFunctionThe field for thesimilarityFunctionrecord component.private final longThe field for thevectorDataLengthrecord component.private final longThe field for thevectorDataOffsetrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFieldEntry(VectorSimilarityFunction similarityFunction, long vectorDataOffset, long vectorDataLength, long indexDataOffset, long indexDataLength, int dimension, int[] ordToDoc, long[] ordOffsets) Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) static Lucene90HnswVectorsReader.FieldEntrycreate(DataInput input, VectorSimilarityFunction similarityFunction) intReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theindexDataLengthrecord component.longReturns the value of theindexDataOffsetrecord component.long[]Returns the value of theordOffsetsrecord component.int[]ordToDoc()Returns the value of theordToDocrecord component.Returns the value of thesimilarityFunctionrecord component.(package private) intsize()final StringtoString()Returns a string representation of this record class.longReturns the value of thevectorDataLengthrecord component.longReturns the value of thevectorDataOffsetrecord component.
-
Field Details
-
similarityFunction
The field for thesimilarityFunctionrecord component. -
vectorDataOffset
private final long vectorDataOffsetThe field for thevectorDataOffsetrecord component. -
vectorDataLength
private final long vectorDataLengthThe field for thevectorDataLengthrecord component. -
indexDataOffset
private final long indexDataOffsetThe field for theindexDataOffsetrecord component. -
indexDataLength
private final long indexDataLengthThe field for theindexDataLengthrecord component. -
dimension
private final int dimensionThe field for thedimensionrecord component. -
ordToDoc
private final int[] ordToDocThe field for theordToDocrecord component. -
ordOffsets
private final long[] ordOffsetsThe field for theordOffsetsrecord component.
-
-
Constructor Details
-
FieldEntry
private FieldEntry(VectorSimilarityFunction similarityFunction, long vectorDataOffset, long vectorDataLength, long indexDataOffset, long indexDataLength, int dimension, int[] ordToDoc, long[] ordOffsets) Creates an instance of aFieldEntryrecord class.- Parameters:
similarityFunction- the value for thesimilarityFunctionrecord componentvectorDataOffset- the value for thevectorDataOffsetrecord componentvectorDataLength- the value for thevectorDataLengthrecord componentindexDataOffset- the value for theindexDataOffsetrecord componentindexDataLength- the value for theindexDataLengthrecord componentdimension- the value for thedimensionrecord componentordToDoc- the value for theordToDocrecord componentordOffsets- the value for theordOffsetsrecord component
-
-
Method Details
-
create
static Lucene90HnswVectorsReader.FieldEntry create(DataInput input, VectorSimilarityFunction similarityFunction) throws IOException - Throws:
IOException
-
size
int size() -
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
Returns the value of thesimilarityFunctionrecord component.- Returns:
- the value of the
similarityFunctionrecord component
-
vectorDataOffset
public long vectorDataOffset()Returns the value of thevectorDataOffsetrecord component.- Returns:
- the value of the
vectorDataOffsetrecord component
-
vectorDataLength
public long vectorDataLength()Returns the value of thevectorDataLengthrecord component.- Returns:
- the value of the
vectorDataLengthrecord component
-
indexDataOffset
public long indexDataOffset()Returns the value of theindexDataOffsetrecord component.- Returns:
- the value of the
indexDataOffsetrecord component
-
indexDataLength
public long indexDataLength()Returns the value of theindexDataLengthrecord component.- Returns:
- the value of the
indexDataLengthrecord component
-
dimension
public int dimension()Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
ordToDoc
public int[] ordToDoc()Returns the value of theordToDocrecord component.- Returns:
- the value of the
ordToDocrecord component
-
ordOffsets
public long[] ordOffsets()Returns the value of theordOffsetsrecord component.- Returns:
- the value of the
ordOffsetsrecord component
-