Record Class Lucene92HnswVectorsReader.FieldEntry
java.lang.Object
java.lang.Record
org.apache.lucene.backward_codecs.lucene92.Lucene92HnswVectorsReader.FieldEntry
- Enclosing class:
Lucene92HnswVectorsReader
static record Lucene92HnswVectorsReader.FieldEntry(VectorSimilarityFunction similarityFunction, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, int M, int numLevels, int dimension, int size, int[][] nodesByLevel, long[] graphOffsetsByLevel, long docsWithFieldOffset, long docsWithFieldLength, short jumpTableEntryCount, byte denseRankPower, long addressesOffset, int blockShift, DirectMonotonicReader.Meta meta, long addressesLength)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theaddressesLengthrecord component.private final longThe field for theaddressesOffsetrecord component.private final intThe field for theblockShiftrecord component.private final byteThe field for thedenseRankPowerrecord component.private final intThe field for thedimensionrecord component.private final longThe field for thedocsWithFieldLengthrecord component.private final longThe field for thedocsWithFieldOffsetrecord component.private final long[]The field for thegraphOffsetsByLevelrecord component.private final shortThe field for thejumpTableEntryCountrecord component.private final intThe field for theMrecord component.private final DirectMonotonicReader.MetaThe field for themetarecord component.private final int[][]The field for thenodesByLevelrecord component.private final intThe field for thenumLevelsrecord 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 longThe field for thevectorIndexLengthrecord component.private final longThe field for thevectorIndexOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFieldEntry(VectorSimilarityFunction similarityFunction, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, int M, int numLevels, int dimension, int size, int[][] nodesByLevel, long[] graphOffsetsByLevel, long docsWithFieldOffset, long docsWithFieldLength, short jumpTableEntryCount, byte denseRankPower, long addressesOffset, int blockShift, DirectMonotonicReader.Meta meta, long addressesLength) Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theaddressesLengthrecord component.longReturns the value of theaddressesOffsetrecord component.intReturns the value of theblockShiftrecord component.(package private) static Lucene92HnswVectorsReader.FieldEntrycreate(IndexInput input, VectorSimilarityFunction similarityFunction) byteReturns the value of thedenseRankPowerrecord component.intReturns the value of thedimensionrecord component.longReturns the value of thedocsWithFieldLengthrecord component.longReturns the value of thedocsWithFieldOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.long[]Returns the value of thegraphOffsetsByLevelrecord component.final inthashCode()Returns a hash code value for this object.shortReturns the value of thejumpTableEntryCountrecord component.intM()Returns the value of theMrecord component.meta()Returns the value of themetarecord component.int[][]Returns the value of thenodesByLevelrecord component.intReturns the value of thenumLevelsrecord 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.longReturns the value of thevectorIndexLengthrecord component.longReturns the value of thevectorIndexOffsetrecord 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. -
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. -
graphOffsetsByLevel
private final long[] graphOffsetsByLevelThe field for thegraphOffsetsByLevelrecord component. -
docsWithFieldOffset
private final long docsWithFieldOffsetThe field for thedocsWithFieldOffsetrecord component. -
docsWithFieldLength
private final long docsWithFieldLengthThe field for thedocsWithFieldLengthrecord component. -
jumpTableEntryCount
private final short jumpTableEntryCountThe field for thejumpTableEntryCountrecord component. -
denseRankPower
private final byte denseRankPowerThe field for thedenseRankPowerrecord component. -
addressesOffset
private final long addressesOffsetThe field for theaddressesOffsetrecord component. -
blockShift
private final int blockShiftThe field for theblockShiftrecord component. -
meta
The field for themetarecord component. -
addressesLength
private final long addressesLengthThe field for theaddressesLengthrecord component.
-
-
Constructor Details
-
FieldEntry
FieldEntry(VectorSimilarityFunction similarityFunction, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, int M, int numLevels, int dimension, int size, int[][] nodesByLevel, long[] graphOffsetsByLevel, long docsWithFieldOffset, long docsWithFieldLength, short jumpTableEntryCount, byte denseRankPower, long addressesOffset, int blockShift, DirectMonotonicReader.Meta meta, long addressesLength) Creates an instance of aFieldEntryrecord class.- Parameters:
similarityFunction- the value for thesimilarityFunctionrecord 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 componentgraphOffsetsByLevel- the value for thegraphOffsetsByLevelrecord componentdocsWithFieldOffset- the value for thedocsWithFieldOffsetrecord componentdocsWithFieldLength- the value for thedocsWithFieldLengthrecord componentjumpTableEntryCount- the value for thejumpTableEntryCountrecord componentdenseRankPower- the value for thedenseRankPowerrecord componentaddressesOffset- the value for theaddressesOffsetrecord componentblockShift- the value for theblockShiftrecord componentmeta- the value for themetarecord componentaddressesLength- the value for theaddressesLengthrecord component
-
-
Method Details
-
create
static Lucene92HnswVectorsReader.FieldEntry create(IndexInput input, 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
-
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
-
graphOffsetsByLevel
public long[] graphOffsetsByLevel()Returns the value of thegraphOffsetsByLevelrecord component.- Returns:
- the value of the
graphOffsetsByLevelrecord component
-
docsWithFieldOffset
public long docsWithFieldOffset()Returns the value of thedocsWithFieldOffsetrecord component.- Returns:
- the value of the
docsWithFieldOffsetrecord component
-
docsWithFieldLength
public long docsWithFieldLength()Returns the value of thedocsWithFieldLengthrecord component.- Returns:
- the value of the
docsWithFieldLengthrecord component
-
jumpTableEntryCount
public short jumpTableEntryCount()Returns the value of thejumpTableEntryCountrecord component.- Returns:
- the value of the
jumpTableEntryCountrecord component
-
denseRankPower
public byte denseRankPower()Returns the value of thedenseRankPowerrecord component.- Returns:
- the value of the
denseRankPowerrecord component
-
addressesOffset
public long addressesOffset()Returns the value of theaddressesOffsetrecord component.- Returns:
- the value of the
addressesOffsetrecord component
-
blockShift
public int blockShift()Returns the value of theblockShiftrecord component.- Returns:
- the value of the
blockShiftrecord component
-
meta
Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-
addressesLength
public long addressesLength()Returns the value of theaddressesLengthrecord component.- Returns:
- the value of the
addressesLengthrecord component
-