Package org.redisson.api.search.index
Class FlatVectorIndexParams
java.lang.Object
org.redisson.api.search.index.FlatVectorIndexParams
- All Implemented Interfaces:
FieldIndex,FlatVectorIndex,FlatVectorOptionalArgs,VectorDimParam<FlatVectorOptionalArgs>,VectorDistParam<FlatVectorOptionalArgs>,VectorTypeParam<FlatVectorOptionalArgs>
public final class FlatVectorIndexParams
extends Object
implements FlatVectorIndex, VectorDimParam<FlatVectorOptionalArgs>, VectorDistParam<FlatVectorOptionalArgs>, FlatVectorOptionalArgs
- 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 nameblockSize(int value) Defines amount of vectors in a contiguous array.dim(int value) Defines vector dimension parameterDefines distance metric parametergetAs()intgetCount()intgetDim()getType()initialCapacity(int value) Defines initial vector capacity.type(VectorTypeParam.Type type) Defines vector type parameter
-
Method Details
-
as
Description copied from interface:FlatVectorIndexDefines the attribute associated to the field name- Specified by:
asin interfaceFlatVectorIndex- Parameters:
as- the associated attribute- Returns:
- options object
-
type
Description copied from interface:VectorTypeParamDefines vector type parameter- Specified by:
typein interfaceVectorTypeParam<FlatVectorOptionalArgs>- Parameters:
type- vector type parameter- Returns:
- vector options
-
dim
Description copied from interface:VectorDimParamDefines vector dimension parameter- Specified by:
dimin interfaceVectorDimParam<FlatVectorOptionalArgs>- Parameters:
value- vector dimension- Returns:
- vector options
-
distance
Description copied from interface:VectorDistParamDefines distance metric parameter- Specified by:
distancein interfaceVectorDistParam<FlatVectorOptionalArgs>- Parameters:
metric- distance metric- Returns:
- vector options
-
initialCapacity
Description copied from interface:FlatVectorOptionalArgsDefines initial vector capacity.- Specified by:
initialCapacityin interfaceFlatVectorOptionalArgs- Parameters:
value- initial vector capacity- Returns:
- vector options
-
blockSize
Description copied from interface:FlatVectorOptionalArgsDefines amount of vectors in a contiguous array.- Specified by:
blockSizein interfaceFlatVectorOptionalArgs- Parameters:
value- amount of vectors- Returns:
- vector options
-
getFieldName
-
getType
-
getDim
public int getDim() -
getDistanceMetric
-
getInitialCapacity
-
getBlockSize
-
getCount
public int getCount() -
getAs
-