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 Summary
Modifier and TypeMethodDescriptionall()Initializes frontier containing ALL nodes in this domain ($0 \dots N_d-1$).Returns the list of attribute names defined for this domain.default MemorySegmentattributeSegment(int attributeIndex) Returns the off-heapMemorySegmentfor the attribute at index in this domain.default MemorySegmentattributeSegment(String attributeName) Returns the off-heapMemorySegmentfor the named attribute in this domain.default List<MemorySegment> Returns the list of off-heapMemorySegments for all attributes in this domain.intdomainId()Physical domain ID index in the snapshot catalog.Domain name identifier (e.g.default Traversal<ImpulseBitSet> first(int n) Initializes frontier with the first `n` nodes from this domain (0 ... n - 1).from(long nodeId) Initializes frontier with a single scalar seed node ID.from(long... nodeIds) Initializes frontier with a batch array of seed node IDs.from(ImpulseBitSet bitset) Initializes frontier with an existing bitset.default Traversal<ImpulseBitSet> Initializes frontier with a single external business key (e.g.default Traversal<ImpulseBitSet> Initializes frontier with a batch array of external business keys.default Traversal<ImpulseBitSet> fromRandom(int n) Initializes frontier with `n` random nodes uniformly sampled from this domain.default StringReturns the name of the primary key attribute, or null if none.default intReturns the 0-indexed attribute index holding the primary key column, or 0xFFFF if none.default MultiLaneBuilderReturns a builder for 64-lane bit-sliced multi-seed/concept-group traversals anchored in this domain.longTotal number of nodes in this domain ($N_d$).longLook up the dense node ID (0 ...toKey(long denseId) Look up the external business key string for a dense node ID.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.
-
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
Traversal<ImpulseBitSet> all()Initializes frontier containing ALL nodes in this domain ($0 \dots N_d-1$). -
from
Initializes frontier with a single scalar seed node ID. -
from
Initializes frontier with a batch array of seed node IDs. -
from
Initializes frontier with an existing bitset. -
first
Initializes frontier with the first `n` nodes from this domain (0 ... n - 1). -
fromRandom
Initializes frontier with `n` random nodes uniformly sampled from this domain. -
attributeNames
-
attributeSegments
Returns the list of off-heapMemorySegments for all attributes in this domain. -
attributeSegment
Returns the off-heapMemorySegmentfor the named attribute in this domain. -
attributeSegment
Returns the off-heapMemorySegmentfor 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
Returns the name of the primary key attribute, or null if none. -
toDenseId
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
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
Initializes frontier with a single external business key (e.g. "user_alice", "DB00001"). -
fromKeys
Initializes frontier with a batch array of external business keys. -
multiLane
Returns a builder for 64-lane bit-sliced multi-seed/concept-group traversals anchored in this domain. -
vectorSearch
Initializes a traversal frontier from an Approximate Nearest Neighbor (ANN) vector search over the given embedding index or float attribute.
-