Package org.redisson.api.vector
Interface VectorAddArgs
- All Known Implementing Classes:
VectorAddParams
public interface VectorAddArgs
Arguments object for RVectorSet.add() method
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceArguments object for vector data -
Method Summary
Modifier and TypeMethodDescriptionattributes(Object attributes) Defines the attributes.static VectorAddArgs.ElementStepDefines element nameexplorationFactor(int value) Defines the exploration factor (EF)maxConnections(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.
-
Method Details
-
element
Defines element name- Parameters:
name- element name- Returns:
- arguments object
-
reduce
Sets the random projection value to reduce the dimensionality of the vector.- Parameters:
reduce- value to reduce the dimensionality- Returns:
- arguments object
-
useCheckAndSet
VectorAddArgs useCheckAndSet()Defines whether it is to use check-and-set style for the addition execution.- Returns:
- arguments object
-
quantization
Defines the quantization type- Parameters:
type- quantization type- Returns:
- arguments object
-
explorationFactor
Defines the exploration factor (EF)- Parameters:
value- exploration factor value- Returns:
- arguments object
-
attributes
Defines the attributes. Used in the form of a JavaScript object.- Parameters:
attributes- attributes object to serialize- Returns:
- arguments object
-
maxConnections
Defines the number of maximum connections which each node will have with other nodes.- Parameters:
maxConnections- number of maximum connections- Returns:
- arguments object
-