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 int
The field for thedimension
record component.private final FieldInfo
The field for theinfo
record component.private final OrdToDocDISIReaderConfiguration
The field for theordToDoc
record component.private final VectorSimilarityFunction
The field for thesimilarityFunction
record component.private final int
The field for thesize
record component.private final long
The field for thevectorDataLength
record component.private final long
The field for thevectorDataOffset
record component.private final VectorEncoding
The field for thevectorEncoding
record component. -
Constructor Summary
ConstructorsConstructorDescriptionFieldEntry
(VectorSimilarityFunction similarityFunction, VectorEncoding vectorEncoding, long vectorDataOffset, long vectorDataLength, int dimension, int size, OrdToDocDISIReaderConfiguration ordToDoc, FieldInfo info) Creates an instance of aFieldEntry
record class. -
Method Summary
Modifier and TypeMethodDescription(package private) static Lucene99FlatVectorsReader.FieldEntry
create
(IndexInput input, FieldInfo info) int
Returns the value of thedimension
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.info()
Returns the value of theinfo
record component.ordToDoc()
Returns the value of theordToDoc
record component.Returns the value of thesimilarityFunction
record component.int
size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thevectorDataLength
record component.long
Returns the value of thevectorDataOffset
record component.Returns the value of thevectorEncoding
record component.
-
Field Details
-
similarityFunction
The field for thesimilarityFunction
record component. -
vectorEncoding
The field for thevectorEncoding
record component. -
vectorDataOffset
private final long vectorDataOffsetThe field for thevectorDataOffset
record component. -
vectorDataLength
private final long vectorDataLengthThe field for thevectorDataLength
record component. -
dimension
private final int dimensionThe field for thedimension
record component. -
size
private final int sizeThe field for thesize
record component. -
ordToDoc
The field for theordToDoc
record component. -
info
The field for theinfo
record 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 aFieldEntry
record class.- Parameters:
similarityFunction
- the value for thesimilarityFunction
record componentvectorEncoding
- the value for thevectorEncoding
record componentvectorDataOffset
- the value for thevectorDataOffset
record componentvectorDataLength
- the value for thevectorDataLength
record componentdimension
- the value for thedimension
record componentsize
- the value for thesize
record componentordToDoc
- the value for theordToDoc
record componentinfo
- the value for theinfo
record 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 thesimilarityFunction
record component.- Returns:
- the value of the
similarityFunction
record component
-
vectorEncoding
Returns the value of thevectorEncoding
record component.- Returns:
- the value of the
vectorEncoding
record component
-
vectorDataOffset
public long vectorDataOffset()Returns the value of thevectorDataOffset
record component.- Returns:
- the value of the
vectorDataOffset
record component
-
vectorDataLength
public long vectorDataLength()Returns the value of thevectorDataLength
record component.- Returns:
- the value of the
vectorDataLength
record component
-
dimension
public int dimension()Returns the value of thedimension
record component.- Returns:
- the value of the
dimension
record component
-
size
public int size()Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
ordToDoc
Returns the value of theordToDoc
record component.- Returns:
- the value of the
ordToDoc
record component
-
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-