Interface RVectorSetAsync

All Superinterfaces:
RExpirableAsync, RObjectAsync
All Known Subinterfaces:
RVectorSet
All Known Implementing Classes:
RedissonVectorSet

public interface RVectorSetAsync extends RExpirableAsync
Async interface for Redis Vector Set
Author:
Nikita Koksharov
  • Method Details

    • addAsync

      RFuture<Boolean> addAsync(VectorAddArgs args)
      Adds an element to the vector set asynchronously
      Parameters:
      args - vector add arguments
      Returns:
      true if element was added and false if updated
    • sizeAsync

      RFuture<Integer> sizeAsync()
      Returns the number of elements in the vector set asynchronously
      Returns:
      cardinality of the vector set
    • dimensionsAsync

      RFuture<Integer> dimensionsAsync()
      Returns the dimension of vectors in the vector set asynchronously
      Returns:
      dimension count
    • getVectorAsync

      RFuture<List<Double>> getVectorAsync(String element)
      Retrieves the vector associated with an element asynchronously
      Parameters:
      element - element name
      Returns:
      list of vector coordinates
    • getRawVectorAsync

      RFuture<List<Object>> getRawVectorAsync(String element)
      Retrieves the raw vector associated with an element asynchronously
      Parameters:
      element - element name
      Returns:
      list of raw vector values
    • getAttributesAsync

      <T> RFuture<T> getAttributesAsync(String element, Class<T> clazz)
      Retrieves attributes of a vector set element asynchronously
      Parameters:
      element - element name
      clazz - class type for deserialization
      Returns:
      deserialized attributes object
    • getInfoAsync

      RFuture<VectorInfo> getInfoAsync()
      Returns metadata and internal details about the vector set asynchronously
      Returns:
      vector set information
    • getNeighborsAsync

      RFuture<List<String>> getNeighborsAsync(String element)
      Retrieves the neighbors of a specified element asynchronously
      Parameters:
      element - element name
      Returns:
      list of neighbor element names
    • getNeighborEntriesAsync

      RFuture<List<ScoredEntry<String>>> getNeighborEntriesAsync(String element)
      Retrieves the neighbors of a specified element with scores asynchronously
      Parameters:
      element - element name
      Returns:
      list of neighbor elements with scores
    • randomAsync

      RFuture<String> randomAsync()
      Returns a random element from the vector set asynchronously
      Returns:
      random element name
    • randomAsync

      RFuture<List<String>> randomAsync(int count)
      Returns multiple random elements from the vector set asynchronously
      Parameters:
      count - number of elements to return
      Returns:
      list of random element names
    • removeAsync

      RFuture<Boolean> removeAsync(String element)
      Removes an element from the vector set asynchronously
      Parameters:
      element - element name to remove
      Returns:
      true if element was removed, false otherwise
    • setAttributesAsync

      RFuture<Boolean> setAttributesAsync(String element, Object attributes)
      Sets attributes for a vector set element asynchronously
      Parameters:
      element - element name
      attributes - attributes object to serialize
      Returns:
      true if attributes were set, false otherwise
    • getSimilarAsync

      RFuture<List<String>> getSimilarAsync(VectorSimilarArgs args)
      Retrieves elements similar to a given vector or element asynchronously
      Parameters:
      args - vector similarity arguments
      Returns:
      list of similar element names
    • getSimilarEntriesAsync

      RFuture<List<ScoredEntry<String>>> getSimilarEntriesAsync(VectorSimilarArgs args)
      Retrieves elements similar to a given vector or element with scores asynchronously
      Parameters:
      args - vector similarity arguments
      Returns:
      list of similar elements with scores