Class DefaultDomainView
java.lang.Object
org.impulsegraph.vm.traversal.DefaultDomainView
- All Implemented Interfaces:
DomainView
Domain Anchor Context implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDomainView(ImpulseGraphSnapshot snapshot, String domainName, int domainId, long nodeCount) -
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.attributeSegment(int attributeIndex) Returns the off-heapMemorySegmentfor the attribute at index in this domain.attributeSegment(String attributeName) Returns the off-heapMemorySegmentfor the named attribute in this domain.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.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.static DomainViewgetOrCreate(ImpulseGraphSnapshot snapshot, String domainName, int domainId, long nodeCount) intReturns the 0-indexed attribute index holding the primary key column, or 0xFFFF if none.Returns 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.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DomainView
first, fromKey, fromKeys, fromRandom, keyAttributeName
-
Constructor Details
-
DefaultDomainView
public DefaultDomainView(ImpulseGraphSnapshot snapshot, String domainName, int domainId, long nodeCount)
-
-
Method Details
-
getOrCreate
public static DomainView getOrCreate(ImpulseGraphSnapshot snapshot, String domainName, int domainId, long nodeCount) -
domainName
Description copied from interface:DomainViewDomain name identifier (e.g. "User", "WineInventory").- Specified by:
domainNamein interfaceDomainView
-
domainId
public int domainId()Description copied from interface:DomainViewPhysical domain ID index in the snapshot catalog.- Specified by:
domainIdin interfaceDomainView
-
nodeCount
public long nodeCount()Description copied from interface:DomainViewTotal number of nodes in this domain ($N_d$).- Specified by:
nodeCountin interfaceDomainView
-
all
Description copied from interface:DomainViewInitializes frontier containing ALL nodes in this domain ($0 \dots N_d-1$).- Specified by:
allin interfaceDomainView
-
attributeNames
Description copied from interface:DomainViewReturns the list of attribute names defined for this domain.- Specified by:
attributeNamesin interfaceDomainView
-
attributeSegments
Description copied from interface:DomainViewReturns the list of off-heapMemorySegments for all attributes in this domain.- Specified by:
attributeSegmentsin interfaceDomainView
-
attributeSegment
Description copied from interface:DomainViewReturns the off-heapMemorySegmentfor the named attribute in this domain.- Specified by:
attributeSegmentin interfaceDomainView
-
attributeSegment
Description copied from interface:DomainViewReturns the off-heapMemorySegmentfor the attribute at index in this domain.- Specified by:
attributeSegmentin interfaceDomainView
-
keyAttrIndex
public int keyAttrIndex()Description copied from interface:DomainViewReturns the 0-indexed attribute index holding the primary key column, or 0xFFFF if none.- Specified by:
keyAttrIndexin interfaceDomainView
-
toDenseId
Description copied from interface:DomainViewLook up the dense node ID (0 ... N_d - 1) for an external business key (e.g. "DB00001", "user_alice").- Specified by:
toDenseIdin interfaceDomainView- Parameters:
key- External business key string- Returns:
- Dense node ID (0 ... N_d - 1), or -1 if not found
-
toKey
Description copied from interface:DomainViewLook up the external business key string for a dense node ID.- Specified by:
toKeyin interfaceDomainView- Parameters:
denseId- Dense node ID (0 ... N_d - 1)- Returns:
- External key string, or null/fallback if not found
-
from
Description copied from interface:DomainViewInitializes frontier with a single scalar seed node ID.- Specified by:
fromin interfaceDomainView
-
from
Description copied from interface:DomainViewInitializes frontier with a batch array of seed node IDs.- Specified by:
fromin interfaceDomainView
-
from
Description copied from interface:DomainViewInitializes frontier with an existing bitset.- Specified by:
fromin interfaceDomainView
-
multiLane
Description copied from interface:DomainViewReturns a builder for 64-lane bit-sliced multi-seed/concept-group traversals anchored in this domain.- Specified by:
multiLanein interfaceDomainView
-
vectorSearch
Description copied from interface:DomainViewInitializes a traversal frontier from an Approximate Nearest Neighbor (ANN) vector search over the given embedding index or float attribute.- Specified by:
vectorSearchin interfaceDomainView
-