Class DefaultTraversal<T>
java.lang.Object
org.impulsegraph.vm.traversal.DefaultTraversal<T>
- All Implemented Interfaces:
Traversal<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTraversal(ImpulseGraphSnapshot snapshot, String currentDomain, Object seedInput) -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the currently active node domain in this traversal pipeline.Traverses edges in both outgoing (CSR) and incoming (CSC) directions along the given relation.Traverses both outgoing and incoming edges across the union of all given relations.collect()Terminal step: executes the pipeline and collects into type T.longcount()Terminal step: returns total cardinality of surviving target nodes.difference(Traversal<ImpulseBitSet> branch) Set difference (this \ branch) with another traversal pipeline ending in the same domain.Filters active frontier nodes via CEL predicate expression.fixpointOut(String relation, int maxHops) Monotone transitive closureF_{t+1} = F_t U out(relation)(F_t)up tomaxHopsiterations, includingF_0.Traverses incoming edges along the given relation (via CSC), defaulting to OR reduction.Traverses incoming edges across the union of all given relations.Traverses incoming edges along the given relation, filtering edges via a CEL predicate.Traverses incoming edges along the given relation, reducing converging paths via the given monoid.intersect(Traversal<ImpulseBitSet> branch) Set intersection with another traversal pipeline ending in the same domain.Reverse edge-filtered traversal keeping only edges satisfying the given CEL edge predicate.Scalar maximum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values.Scalar minimum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values.Traverses outgoing edges along the given relation, defaulting to OR reduction.Traverses outgoing edges across the union of all given relations.Traverses outgoing edges along the given relation, filtering edges via a CEL predicate (e.g.Traverses outgoing edges along the given relation, reducing converging paths via the given monoid.Forward edge-filtered traversal keeping only edges satisfying the given CEL edge predicate.outWithState(String relation, String stateProjections) Traverses outgoing edges, applying state projections and reducers to converging paths.Projects or mutates attached state vector values on active nodes.repeat(int iterations, Function<Traversal<ImpulseBitSet>, Traversal<ImpulseBitSet>> step) Repeats step exactly n times.Exacthops-step forward composition alongrelationwithout intermediate union accumulation.Fixed-point loop: repeats step until frontier set converges (Frontier_{t+1} == Frontier_t).Reranks the active frontier using exact SIMD vector similarity (`0xCB` `OP_VECTOR_RERANK_DOT`).doubleScalar sum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values (returns0.0when empty).toBitSet()Terminal step: returns target frontier as a zero-copy off-heapImpulseBitSet.toImpAsm()Disassembles the traversal pipeline into human-readable ImpAsm bytecode assembly.Terminal step: returns target frontier nodes resolved to external business key strings in the active domain.toKeySet()Terminal step: returns target frontier nodes resolved to unique external business key strings in the active domain.toList()Terminal step: returns target dense IDs as a List of Longs.topK(int k) Terminal step: returns the top-K highest-scoring nodes from a reranked frontier (or first K active nodes if unreranked).topKKeys(int k) Terminal step: returns the top-K highest-scoring nodes resolved to external business keys.toSet()Terminal step: returns target dense IDs as a Set of Longs.union(Traversal<ImpulseBitSet> branch) Set union with another traversal pipeline ending in the same domain.Binds a named dynamic parameter for CEL filter expressions.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Traversal
outWithState, repeat, repeat, repeatUntilStable, repeatUntilStable, rerank, withParam, withParam, withParam
-
Constructor Details
-
DefaultTraversal
-
-
Method Details
-
activeDomain
Description copied from interface:TraversalReturns the name of the currently active node domain in this traversal pipeline.- Specified by:
activeDomainin interfaceTraversal<T>
-
filter
-
project
-
out
-
out
-
out
-
out
-
outWhere
-
outWithState
-
in
-
in
-
in
-
in
-
inWhere
-
both
-
both
-
repeatOut
-
fixpointOut
-
union
-
intersect
-
difference
Description copied from interface:TraversalSet difference (this \ branch) with another traversal pipeline ending in the same domain.- Specified by:
differencein interfaceTraversal<T>
-
sum
-
min
-
max
-
rerank
-
topK
-
topKKeys
-
withParam
-
repeatUntilStable
public Traversal<T> repeatUntilStable(Function<Traversal<ImpulseBitSet>, Traversal<ImpulseBitSet>> step) Description copied from interface:TraversalFixed-point loop: repeats step until frontier set converges (Frontier_{t+1} == Frontier_t).- Specified by:
repeatUntilStablein interfaceTraversal<T>
-
repeat
-
collect
-
count
-
toList
-
toSet
-
toKeyList
-
toKeySet
-
toBitSet
Description copied from interface:TraversalTerminal step: returns target frontier as a zero-copy off-heapImpulseBitSet. -
toImpAsm
-