Interface Traversal<T>
- Type Parameters:
T- Final collected return type
- All Known Implementing Classes:
DefaultTraversal
public interface Traversal<T>
Fluent Kleisli Frontier Traversal Pipeline.
Represents monadic frontier propagation <Domain, State> -> <Domain', State'>.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns 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.default OptionalDoubleScalar maximum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values.default OptionalDoubleScalar 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.outWithState(String relation, String edgePredicate, String stateProjections) Traverses outgoing edges, applying a filter and state projections.Projects or mutates attached state vector values on active nodes.Repeats outgoing edge walk acrossrelationup toiterationstimes.Repeats filtered outgoing edge walk acrossrelationup toiterationstimes.repeat(int iterations, Function<Traversal<ImpulseBitSet>, Traversal<ImpulseBitSet>> step) Repeats step exactly n times.Exacthops-step forward composition alongrelationwithout intermediate union accumulation.repeatUntilStable(String relation) Fixed-point loop: repeats outgoing edge walk acrossrelationuntil the frontier set converges (Frontier_{t+1} == Frontier_t).repeatUntilStable(String relation, String edgePredicate) Fixed-point loop: repeats filtered outgoing edge walk acrossrelationuntil the frontier set converges (Frontier_{t+1} == Frontier_t).Fixed-point loop: repeats step until frontier set converges (Frontier_{t+1} == Frontier_t).rerank(float[] queryVector) Reranks the active frontier using dot-product similarity against the default embedding attribute.Reranks the active frontier using exact SIMD vector similarity (`0xCB` `OP_VECTOR_RERANK_DOT`).default 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.default List<ScoredNode> 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 array (primitive 32-bit node IDs) for CEL expressions.Binds a named dynamic parameter array (primitive 64-bit node IDs) for CEL expressions.Binds a named dynamic parameter for CEL filter expressions.Binds a named dynamic parameter list of strings for CEL expressions.
-
Method Details
-
filter
-
project
-
out
-
out
-
out
-
outWithState
-
outWithState
-
in
-
in
-
in
-
both
-
out
-
in
-
both
-
rerank
-
rerank
-
topK
Terminal step: returns the top-K highest-scoring nodes from a reranked frontier (or first K active nodes if unreranked). -
topKKeys
-
withParam
-
withParam
-
withParam
-
withParam
-
repeatUntilStable
-
repeatUntilStable
-
repeatUntilStable
Fixed-point loop: repeats step until frontier set converges (Frontier_{t+1} == Frontier_t). -
repeat
-
repeat
-
repeat
Traversal<T> repeat(int iterations, Function<Traversal<ImpulseBitSet>, Traversal<ImpulseBitSet>> step) Repeats step exactly n times. -
collect
T collect()Terminal step: executes the pipeline and collects into type T. -
count
long count()Terminal step: returns total cardinality of surviving target nodes. -
toList
-
toSet
-
toKeyList
-
toKeySet
-
toBitSet
ImpulseBitSet toBitSet()Terminal step: returns target frontier as a zero-copy off-heapImpulseBitSet. -
activeDomain
Returns the name of the currently active node domain in this traversal pipeline. -
outWhere
-
inWhere
-
repeatOut
-
fixpointOut
-
union
Set union with another traversal pipeline ending in the same domain. -
intersect
Set intersection with another traversal pipeline ending in the same domain. -
difference
Set difference (this \ branch) with another traversal pipeline ending in the same domain. -
sum
Scalar sum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values (returns0.0when empty). -
min
Scalar minimum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values. -
max
Scalar maximum reduction overattrOrCelExpracross active nodes in the final domain, skipping NULL values. -
toImpAsm
String toImpAsm()Disassembles the traversal pipeline into human-readable ImpAsm bytecode assembly.
-