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
  • Method Details

    • vector

      public VectorAddArgs vector(byte[] vector)
      Description copied from interface: VectorAddArgs.ElementStep
      Defines vector as byte array (32-bit floating point blob of values)
      Specified by:
      vector in interface VectorAddArgs.ElementStep
      Parameters:
      vector - vector as byte array
      Returns:
      arguments object
    • vector

      public VectorAddArgs vector(Double... vector)
      Description copied from interface: VectorAddArgs.ElementStep
      Defines vector as array of floating point numbers
      Specified by:
      vector in interface VectorAddArgs.ElementStep
      Parameters:
      vector - vector as array of doubles
      Returns:
      arguments object
    • reduce

      public VectorAddArgs reduce(int reduce)
      Description copied from interface: VectorAddArgs
      Sets the random projection value to reduce the dimensionality of the vector.
      Specified by:
      reduce in interface VectorAddArgs
      Parameters:
      reduce - value to reduce the dimensionality
      Returns:
      arguments object
    • useCheckAndSet

      public VectorAddArgs useCheckAndSet()
      Description copied from interface: VectorAddArgs
      Defines whether it is to use check-and-set style for the addition execution.
      Specified by:
      useCheckAndSet in interface VectorAddArgs
      Returns:
      arguments object
    • quantization

      public VectorAddArgs quantization(QuantizationType type)
      Description copied from interface: VectorAddArgs
      Defines the quantization type
      Specified by:
      quantization in interface VectorAddArgs
      Parameters:
      type - quantization type
      Returns:
      arguments object
    • explorationFactor

      public VectorAddArgs explorationFactor(int value)
      Description copied from interface: VectorAddArgs
      Defines the exploration factor (EF)
      Specified by:
      explorationFactor in interface VectorAddArgs
      Parameters:
      value - exploration factor value
      Returns:
      arguments object
    • attributes

      public VectorAddArgs attributes(Object attributes)
      Description copied from interface: VectorAddArgs
      Defines the attributes. Used in the form of a JavaScript object.
      Specified by:
      attributes in interface VectorAddArgs
      Parameters:
      attributes - attributes object to serialize
      Returns:
      arguments object
    • maxConnections

      public VectorAddArgs maxConnections(int maxConnections)
      Description copied from interface: VectorAddArgs
      Defines the number of maximum connections which each node will have with other nodes.
      Specified by:
      maxConnections in interface VectorAddArgs
      Parameters:
      maxConnections - number of maximum connections
      Returns:
      arguments object
    • getElement

      public String getElement()
    • getVectorBytes

      public byte[] getVectorBytes()
    • getVectorDoubles

      public Double[] getVectorDoubles()
    • getReduce

      public Integer getReduce()
    • isUseCheckAndSet

      public boolean isUseCheckAndSet()
    • getQuantizationType

      public QuantizationType getQuantizationType()
    • getEffort

      public Integer getEffort()
    • getAttributes

      public Object getAttributes()
    • getMaxConnections

      public Integer getMaxConnections()