Module org.apache.lucene.core
Record Class Lucene99ScalarQuantizedVectorsReader.FieldEntry
java.lang.Object
java.lang.Record
org.apache.lucene.codecs.lucene99.Lucene99ScalarQuantizedVectorsReader.FieldEntry
- Enclosing class:
Lucene99ScalarQuantizedVectorsReader
private static record Lucene99ScalarQuantizedVectorsReader.FieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, int dimension, long vectorDataOffset, long vectorDataLength, ScalarQuantizer scalarQuantizer, int size, byte bits, boolean compress, OrdToDocDISIReaderConfiguration ordToDoc)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteThe field for thebitsrecord component.private final booleanThe field for thecompressrecord component.private final intThe field for thedimensionrecord component.private final OrdToDocDISIReaderConfigurationThe field for theordToDocrecord component.private final ScalarQuantizerThe field for thescalarQuantizerrecord 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. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, int dimension, long vectorDataOffset, long vectorDataLength, ScalarQuantizer scalarQuantizer, int size, byte bits, boolean compress, OrdToDocDISIReaderConfiguration ordToDoc) Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbytebits()Returns the value of thebitsrecord component.booleancompress()Returns the value of thecompressrecord component.(package private) static Lucene99ScalarQuantizedVectorsReader.FieldEntrycreate(IndexInput input, int versionMeta, 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.ordToDoc()Returns the value of theordToDocrecord component.Returns the value of thescalarQuantizerrecord 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.
-
Field Details
-
similarityFunction
The field for thesimilarityFunctionrecord component. -
vectorEncoding
The field for thevectorEncodingrecord component. -
dimension
private final int dimensionThe field for thedimensionrecord component. -
vectorDataOffset
private final long vectorDataOffsetThe field for thevectorDataOffsetrecord component. -
vectorDataLength
private final long vectorDataLengthThe field for thevectorDataLengthrecord component. -
scalarQuantizer
The field for thescalarQuantizerrecord component. -
size
private final int sizeThe field for thesizerecord component. -
bits
private final byte bitsThe field for thebitsrecord component. -
compress
private final boolean compressThe field for thecompressrecord component. -
ordToDoc
The field for theordToDocrecord component.
-
-
Constructor Details
-
FieldEntry
private FieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, int dimension, long vectorDataOffset, long vectorDataLength, ScalarQuantizer scalarQuantizer, int size, byte bits, boolean compress, OrdToDocDISIReaderConfiguration ordToDoc) Creates an instance of aFieldEntryrecord class.- Parameters:
similarityFunction- the value for thesimilarityFunctionrecord componentvectorEncoding- the value for thevectorEncodingrecord componentdimension- the value for thedimensionrecord componentvectorDataOffset- the value for thevectorDataOffsetrecord componentvectorDataLength- the value for thevectorDataLengthrecord componentscalarQuantizer- the value for thescalarQuantizerrecord componentsize- the value for thesizerecord componentbits- the value for thebitsrecord componentcompress- the value for thecompressrecord componentordToDoc- the value for theordToDocrecord component
-
-
Method Details
-
create
static Lucene99ScalarQuantizedVectorsReader.FieldEntry create(IndexInput input, int versionMeta, 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
-
dimension
public int dimension()Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord 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
-
scalarQuantizer
Returns the value of thescalarQuantizerrecord component.- Returns:
- the value of the
scalarQuantizerrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
bits
public byte bits()Returns the value of thebitsrecord component.- Returns:
- the value of the
bitsrecord component
-
compress
public boolean compress()Returns the value of thecompressrecord component.- Returns:
- the value of the
compressrecord component
-
ordToDoc
Returns the value of theordToDocrecord component.- Returns:
- the value of the
ordToDocrecord component
-