Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class FieldInfos.FieldVectorProperties
java.lang.Object
java.lang.Record
org.apache.lucene.index.FieldInfos.FieldVectorProperties
- Enclosing class:
FieldInfos
private static record FieldInfos.FieldVectorProperties(int numDimensions, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thenumDimensionsrecord component.private final VectorSimilarityFunctionThe field for thesimilarityFunctionrecord component.private final VectorEncodingThe field for thevectorEncodingrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFieldVectorProperties(int numDimensions, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction) Creates an instance of aFieldVectorPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenumDimensionsrecord component.Returns the value of thesimilarityFunctionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevectorEncodingrecord component.
-
Field Details
-
numDimensions
private final int numDimensionsThe field for thenumDimensionsrecord component. -
vectorEncoding
The field for thevectorEncodingrecord component. -
similarityFunction
The field for thesimilarityFunctionrecord component.
-
-
Constructor Details
-
FieldVectorProperties
private FieldVectorProperties(int numDimensions, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction) Creates an instance of aFieldVectorPropertiesrecord class.- Parameters:
numDimensions- the value for thenumDimensionsrecord componentvectorEncoding- the value for thevectorEncodingrecord componentsimilarityFunction- the value for thesimilarityFunctionrecord component
-
-
Method Details
-
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 '=='. -
numDimensions
public int numDimensions()Returns the value of thenumDimensionsrecord component.- Returns:
- the value of the
numDimensionsrecord component
-
vectorEncoding
Returns the value of thevectorEncodingrecord component.- Returns:
- the value of the
vectorEncodingrecord component
-
similarityFunction
Returns the value of thesimilarityFunctionrecord component.- Returns:
- the value of the
similarityFunctionrecord component
-