Package org.redisson.api.search.index
Class HNSWVectorIndexParams
java.lang.Object
org.redisson.api.search.index.HNSWVectorIndexParams
- All Implemented Interfaces:
FieldIndex,HNSWVectorIndex,HNSWVectorOptionalArgs,VectorDimParam<HNSWVectorOptionalArgs>,VectorDistParam<HNSWVectorOptionalArgs>,VectorTypeParam<HNSWVectorOptionalArgs>
public final class HNSWVectorIndexParams
extends Object
implements HNSWVectorIndex, VectorDimParam<HNSWVectorOptionalArgs>, VectorDistParam<HNSWVectorOptionalArgs>, HNSWVectorOptionalArgs
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.redisson.api.search.index.VectorDistParam
VectorDistParam.DistanceMetricNested classes/interfaces inherited from interface org.redisson.api.search.index.VectorTypeParam
VectorTypeParam.Type -
Method Summary
Modifier and TypeMethodDescriptionDefines the attribute associated to the field namedim(int value) Defines vector dimension parameterDefines distance metric parameterefConstruction(int value) Defines number of maximum allowed potential outgoing edges candidates for each node.efRuntime(int value) Defines number of maximum top candidates to hold during the KNN search.epsilon(double value) Defines relative factor that sets the boundaries in which a range query may search for candidatesgetAs()intgetCount()intgetDim()getM()getType()initialCapacity(int value) Defines initial vector capacity.m(int value) Defines number of maximum allowed outgoing edges for each node.type(VectorTypeParam.Type type) Defines vector type parameter
-
Method Details
-
as
Description copied from interface:HNSWVectorIndexDefines the attribute associated to the field name- Specified by:
asin interfaceHNSWVectorIndex- Parameters:
as- the associated attribute- Returns:
- options object
-
type
Description copied from interface:VectorTypeParamDefines vector type parameter- Specified by:
typein interfaceVectorTypeParam<HNSWVectorOptionalArgs>- Parameters:
type- vector type parameter- Returns:
- vector options
-
dim
Description copied from interface:VectorDimParamDefines vector dimension parameter- Specified by:
dimin interfaceVectorDimParam<HNSWVectorOptionalArgs>- Parameters:
value- vector dimension- Returns:
- vector options
-
distance
Description copied from interface:VectorDistParamDefines distance metric parameter- Specified by:
distancein interfaceVectorDistParam<HNSWVectorOptionalArgs>- Parameters:
metric- distance metric- Returns:
- vector options
-
initialCapacity
Description copied from interface:HNSWVectorOptionalArgsDefines initial vector capacity.- Specified by:
initialCapacityin interfaceHNSWVectorOptionalArgs- Parameters:
value- initial vector capacity- Returns:
- vector options
-
m
Description copied from interface:HNSWVectorOptionalArgsDefines number of maximum allowed outgoing edges for each node.- Specified by:
min interfaceHNSWVectorOptionalArgs- Parameters:
value- number of maximum allowed outgoing edges- Returns:
- vector options
-
efConstruction
Description copied from interface:HNSWVectorOptionalArgsDefines number of maximum allowed potential outgoing edges candidates for each node.- Specified by:
efConstructionin interfaceHNSWVectorOptionalArgs- Parameters:
value- number of maximum allowed potential outgoing edges- Returns:
- vector options
-
efRuntime
Description copied from interface:HNSWVectorOptionalArgsDefines number of maximum top candidates to hold during the KNN search.- Specified by:
efRuntimein interfaceHNSWVectorOptionalArgs- Parameters:
value- number of maximum top candidates- Returns:
- vector options
-
epsilon
Description copied from interface:HNSWVectorOptionalArgsDefines relative factor that sets the boundaries in which a range query may search for candidates- Specified by:
epsilonin interfaceHNSWVectorOptionalArgs- Parameters:
value- relative factor- Returns:
-
getFieldName
-
getType
-
getDim
public int getDim() -
getDistanceMetric
-
getInitialCap
-
getM
-
getEfConstruction
-
getEfRuntime
-
getEpsilon
-
getCount
public int getCount() -
getAs
-