Package org.redisson.api.vector
Class VectorAddParams
java.lang.Object
org.redisson.api.vector.VectorAddParams
- All Implemented Interfaces:
VectorAddArgs,VectorAddArgs.ElementStep
public final class VectorAddParams
extends Object
implements VectorAddArgs, VectorAddArgs.ElementStep
Vector add arguments implementation
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.redisson.api.vector.VectorAddArgs
VectorAddArgs.ElementStep -
Method Summary
Modifier and TypeMethodDescriptionattributes(Object attributes) Defines the attributes.explorationFactor(int value) Defines the exploration factor (EF)byte[]Double[]booleanmaxConnections(int maxConnections) Defines the number of maximum connections which each node will have with other nodes.quantization(QuantizationType type) Defines the quantization typereduce(int reduce) Sets the random projection value to reduce the dimensionality of the vector.Defines whether it is to use check-and-set style for the addition execution.vector(byte[] vector) Defines vector as byte array (32-bit floating point blob of values)Defines vector as array of floating point numbers
-
Method Details
-
vector
Description copied from interface:VectorAddArgs.ElementStepDefines vector as byte array (32-bit floating point blob of values)- Specified by:
vectorin interfaceVectorAddArgs.ElementStep- Parameters:
vector- vector as byte array- Returns:
- arguments object
-
vector
Description copied from interface:VectorAddArgs.ElementStepDefines vector as array of floating point numbers- Specified by:
vectorin interfaceVectorAddArgs.ElementStep- Parameters:
vector- vector as array of doubles- Returns:
- arguments object
-
reduce
Description copied from interface:VectorAddArgsSets the random projection value to reduce the dimensionality of the vector.- Specified by:
reducein interfaceVectorAddArgs- Parameters:
reduce- value to reduce the dimensionality- Returns:
- arguments object
-
useCheckAndSet
Description copied from interface:VectorAddArgsDefines whether it is to use check-and-set style for the addition execution.- Specified by:
useCheckAndSetin interfaceVectorAddArgs- Returns:
- arguments object
-
quantization
Description copied from interface:VectorAddArgsDefines the quantization type- Specified by:
quantizationin interfaceVectorAddArgs- Parameters:
type- quantization type- Returns:
- arguments object
-
explorationFactor
Description copied from interface:VectorAddArgsDefines the exploration factor (EF)- Specified by:
explorationFactorin interfaceVectorAddArgs- Parameters:
value- exploration factor value- Returns:
- arguments object
-
attributes
Description copied from interface:VectorAddArgsDefines the attributes. Used in the form of a JavaScript object.- Specified by:
attributesin interfaceVectorAddArgs- Parameters:
attributes- attributes object to serialize- Returns:
- arguments object
-
maxConnections
Description copied from interface:VectorAddArgsDefines the number of maximum connections which each node will have with other nodes.- Specified by:
maxConnectionsin interfaceVectorAddArgs- Parameters:
maxConnections- number of maximum connections- Returns:
- arguments object
-
getElement
-
getVectorBytes
public byte[] getVectorBytes() -
getVectorDoubles
-
getReduce
-
isUseCheckAndSet
public boolean isUseCheckAndSet() -
getQuantizationType
-
getEffort
-
getAttributes
-
getMaxConnections
-