Module org.apache.lucene.core
Record Class Lucene99FlatVectorsReader.FieldEntry
java.lang.Object
java.lang.Record
org.apache.lucene.codecs.lucene99.Lucene99FlatVectorsReader.FieldEntry
- Enclosing class:
Lucene99FlatVectorsReader
private static record Lucene99FlatVectorsReader.FieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, int dimension, int size, OrdToDocDISIReaderConfiguration ordToDoc, FieldInfo info)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedimensionrecord component.private final FieldInfoThe field for theinforecord component.private final OrdToDocDISIReaderConfigurationThe field for theordToDocrecord 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
ConstructorsConstructorDescriptionFieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, int dimension, int size, OrdToDocDISIReaderConfiguration ordToDoc, FieldInfo info) Creates an instance of aFieldEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) static Lucene99FlatVectorsReader.FieldEntrycreate(IndexInput input, FieldInfo info) 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.info()Returns the value of theinforecord component.ordToDoc()Returns the value of theordToDocrecord 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. -
vectorDataOffset
private final long vectorDataOffsetThe field for thevectorDataOffsetrecord component. -
vectorDataLength
private final long vectorDataLengthThe field for thevectorDataLengthrecord component. -
dimension
private final int dimensionThe field for thedimensionrecord component. -
size
private final int sizeThe field for thesizerecord component. -
ordToDoc
The field for theordToDocrecord component. -
info
The field for theinforecord component.
-
-
Constructor Details
-
FieldEntry
FieldEntry(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, int dimension, int size, OrdToDocDISIReaderConfiguration ordToDoc, FieldInfo info) 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 componentdimension- the value for thedimensionrecord componentsize- the value for thesizerecord componentordToDoc- the value for theordToDocrecord componentinfo- the value for theinforecord component
-
-
Method Details
-
create
static Lucene99FlatVectorsReader.FieldEntry create(IndexInput input, FieldInfo info) 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
-
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
-
ordToDoc
Returns the value of theordToDocrecord component.- Returns:
- the value of the
ordToDocrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-