Record Class Lucene95HnswVectorsReader.FieldEntry
java.lang.Object
java.lang.Record
org.apache.lucene.backward_codecs.lucene95.Lucene95HnswVectorsReader.FieldEntry
- Enclosing class:
Lucene95HnswVectorsReader
static record Lucene95HnswVectorsReader.FieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, int M, int numLevels, int dimension, int size, int[][] nodesByLevel, DirectMonotonicReader.Meta offsetsMeta, long offsetsOffset, int offsetsBlockShift, long offsetsLength, OrdToDocDISIReaderConfiguration ordToDocVectorValues)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedimensionrecord component.private final intThe field for theMrecord component.private final int[][]The field for thenodesByLevelrecord component.private final intThe field for thenumLevelsrecord component.private final intThe field for theoffsetsBlockShiftrecord component.private final longThe field for theoffsetsLengthrecord component.private final DirectMonotonicReader.MetaThe field for theoffsetsMetarecord component.private final longThe field for theoffsetsOffsetrecord component.private final OrdToDocDISIReaderConfigurationThe field for theordToDocVectorValuesrecord component.private final VectorSimilarityFunctionThe field for thesimilarityFunctionrecord component.private final intThe field for thesizerecord component.private final longThe field for thevectorDataLengthrecord component.private final longThe field for thevectorDataOffsetrecord component.private final VectorEncodingThe field for thevectorEncodingrecord component.private final longThe field for thevectorIndexLengthrecord component.private final longThe field for thevectorIndexOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, int M, int numLevels, int dimension, int size, int[][] nodesByLevel, DirectMonotonicReader.Meta offsetsMeta, long offsetsOffset, int offsetsBlockShift, long offsetsLength, OrdToDocDISIReaderConfiguration ordToDocVectorValues) Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) static Lucene95HnswVectorsReader.FieldEntrycreate(IndexInput input, VectorEncoding vectorEncoding, 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.intM()Returns the value of theMrecord component.int[][]Returns the value of thenodesByLevelrecord component.intReturns the value of thenumLevelsrecord component.intReturns the value of theoffsetsBlockShiftrecord component.longReturns the value of theoffsetsLengthrecord component.Returns the value of theoffsetsMetarecord component.longReturns the value of theoffsetsOffsetrecord component.Returns the value of theordToDocVectorValuesrecord component.Returns the value of thesimilarityFunctionrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevectorDataLengthrecord component.longReturns the value of thevectorDataOffsetrecord component.Returns the value of thevectorEncodingrecord component.longReturns the value of thevectorIndexLengthrecord component.longReturns the value of thevectorIndexOffsetrecord component.
-
Field Details
-
similarityFunction
The field for thesimilarityFunctionrecord component. -
vectorEncoding
The field for thevectorEncodingrecord component. -
vectorDataOffset
private final long vectorDataOffsetThe field for thevectorDataOffsetrecord component. -
vectorDataLength
private final long vectorDataLengthThe field for thevectorDataLengthrecord component. -
vectorIndexOffset
private final long vectorIndexOffsetThe field for thevectorIndexOffsetrecord component. -
vectorIndexLength
private final long vectorIndexLengthThe field for thevectorIndexLengthrecord component. -
M
private final int MThe field for theMrecord component. -
numLevels
private final int numLevelsThe field for thenumLevelsrecord component. -
dimension
private final int dimensionThe field for thedimensionrecord component. -
size
private final int sizeThe field for thesizerecord component. -
nodesByLevel
private final int[][] nodesByLevelThe field for thenodesByLevelrecord component. -
offsetsMeta
The field for theoffsetsMetarecord component. -
offsetsOffset
private final long offsetsOffsetThe field for theoffsetsOffsetrecord component. -
offsetsBlockShift
private final int offsetsBlockShiftThe field for theoffsetsBlockShiftrecord component. -
offsetsLength
private final long offsetsLengthThe field for theoffsetsLengthrecord component. -
ordToDocVectorValues
The field for theordToDocVectorValuesrecord component.
-
-
Constructor Details
-
FieldEntry
FieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, int M, int numLevels, int dimension, int size, int[][] nodesByLevel, DirectMonotonicReader.Meta offsetsMeta, long offsetsOffset, int offsetsBlockShift, long offsetsLength, OrdToDocDISIReaderConfiguration ordToDocVectorValues) Creates an instance of aFieldEntryrecord class.- Parameters:
similarityFunction- the value for thesimilarityFunctionrecord componentvectorEncoding- the value for thevectorEncodingrecord componentvectorDataOffset- the value for thevectorDataOffsetrecord componentvectorDataLength- the value for thevectorDataLengthrecord componentvectorIndexOffset- the value for thevectorIndexOffsetrecord componentvectorIndexLength- the value for thevectorIndexLengthrecord componentM- the value for theMrecord componentnumLevels- the value for thenumLevelsrecord componentdimension- the value for thedimensionrecord componentsize- the value for thesizerecord componentnodesByLevel- the value for thenodesByLevelrecord componentoffsetsMeta- the value for theoffsetsMetarecord componentoffsetsOffset- the value for theoffsetsOffsetrecord componentoffsetsBlockShift- the value for theoffsetsBlockShiftrecord componentoffsetsLength- the value for theoffsetsLengthrecord componentordToDocVectorValues- the value for theordToDocVectorValuesrecord component
-
-
Method Details
-
create
static Lucene95HnswVectorsReader.FieldEntry create(IndexInput input, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction) throws IOException - 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. 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
-
vectorEncoding
Returns the value of thevectorEncodingrecord component.- Returns:
- the value of the
vectorEncodingrecord 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
-
vectorIndexOffset
public long vectorIndexOffset()Returns the value of thevectorIndexOffsetrecord component.- Returns:
- the value of the
vectorIndexOffsetrecord component
-
vectorIndexLength
public long vectorIndexLength()Returns the value of thevectorIndexLengthrecord component.- Returns:
- the value of the
vectorIndexLengthrecord component
-
M
public int M()Returns the value of theMrecord component.- Returns:
- the value of the
Mrecord component
-
numLevels
public int numLevels()Returns the value of thenumLevelsrecord component.- Returns:
- the value of the
numLevelsrecord component
-
dimension
public int dimension()Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
nodesByLevel
public int[][] nodesByLevel()Returns the value of thenodesByLevelrecord component.- Returns:
- the value of the
nodesByLevelrecord component
-
offsetsMeta
Returns the value of theoffsetsMetarecord component.- Returns:
- the value of the
offsetsMetarecord component
-
offsetsOffset
public long offsetsOffset()Returns the value of theoffsetsOffsetrecord component.- Returns:
- the value of the
offsetsOffsetrecord component
-
offsetsBlockShift
public int offsetsBlockShift()Returns the value of theoffsetsBlockShiftrecord component.- Returns:
- the value of the
offsetsBlockShiftrecord component
-
offsetsLength
public long offsetsLength()Returns the value of theoffsetsLengthrecord component.- Returns:
- the value of the
offsetsLengthrecord component
-
ordToDocVectorValues
Returns the value of theordToDocVectorValuesrecord component.- Returns:
- the value of the
ordToDocVectorValuesrecord component
-