Interface DomainView

All Known Implementing Classes:
DefaultDomainView

public interface DomainView
Domain Anchor Context representing a specific entity domain (e.g. User, WineInventory, Cheese).

All graph traversals in multi-domain graphs start from an explicit Domain anchor.

  • Method Details

    • domainName

      String domainName()
      Domain name identifier (e.g. "User", "WineInventory").
    • domainId

      int domainId()
      Physical domain ID index in the snapshot catalog.
    • nodeCount

      long nodeCount()
      Total number of nodes in this domain ($N_d$).
    • all

      Initializes frontier containing ALL nodes in this domain ($0 \dots N_d-1$).
    • from

      Traversal<ImpulseBitSet> from(long nodeId)
      Initializes frontier with a single scalar seed node ID.
    • from

      Traversal<ImpulseBitSet> from(long... nodeIds)
      Initializes frontier with a batch array of seed node IDs.
    • from

      Initializes frontier with an existing bitset.
    • first

      default Traversal<ImpulseBitSet> first(int n)
      Initializes frontier with the first `n` nodes from this domain (0 ... n - 1).
    • fromRandom

      default Traversal<ImpulseBitSet> fromRandom(int n)
      Initializes frontier with `n` random nodes uniformly sampled from this domain.
    • attributeNames

      default List<String> attributeNames()
      Returns the list of attribute names defined for this domain.
    • attributeSegments

      default List<MemorySegment> attributeSegments()
      Returns the list of off-heap MemorySegments for all attributes in this domain.
    • attributeSegment

      default MemorySegment attributeSegment(String attributeName)
      Returns the off-heap MemorySegment for the named attribute in this domain.
    • attributeSegment

      default MemorySegment attributeSegment(int attributeIndex)
      Returns the off-heap MemorySegment for the attribute at index in this domain.
    • keyAttrIndex

      default int keyAttrIndex()
      Returns the 0-indexed attribute index holding the primary key column, or 0xFFFF if none.
    • keyAttributeName

      default String keyAttributeName()
      Returns the name of the primary key attribute, or null if none.
    • toDenseId

      long toDenseId(String key)
      Look up the dense node ID (0 ... N_d - 1) for an external business key (e.g. "DB00001", "user_alice").
      Parameters:
      key - External business key string
      Returns:
      Dense node ID (0 ... N_d - 1), or -1 if not found
    • toKey

      String toKey(long denseId)
      Look up the external business key string for a dense node ID.
      Parameters:
      denseId - Dense node ID (0 ... N_d - 1)
      Returns:
      External key string, or null/fallback if not found
    • fromKey

      default Traversal<ImpulseBitSet> fromKey(String key)
      Initializes frontier with a single external business key (e.g. "user_alice", "DB00001").
    • fromKeys

      default Traversal<ImpulseBitSet> fromKeys(String... keys)
      Initializes frontier with a batch array of external business keys.
    • multiLane

      default MultiLaneBuilder multiLane()
      Returns a builder for 64-lane bit-sliced multi-seed/concept-group traversals anchored in this domain.
    • vectorSearch

      default Traversal<ImpulseBitSet> vectorSearch(String indexOrAttr, float[] queryVector, int topK)
      Initializes a traversal frontier from an Approximate Nearest Neighbor (ANN) vector search over the given embedding index or float attribute.