Class Primitives

java.lang.Object
com.apple.foundationdb.async.hnsw.Primitives

@API(EXPERIMENTAL) public class Primitives extends Object
An implementation of primitives for the Hierarchical Navigable Small World (HNSW) algorithm for efficient approximate nearest neighbor (ANN) search.
  • Constructor Details

    • Primitives

      public Primitives(@Nonnull Locator locator)
      Constructs a new HNSW primitives instance.

      This constructor initializes the HNSW graph with the necessary components for storage, execution, configuration, and event handling. All parameters are mandatory and must not be null.

      Parameters:
      locator - the Locator where the graph data is stored, which config to use, which executor to use, etc.
  • Method Details

    • getLocator

      @Nonnull public Locator getLocator()