Skip to main content

select_target

Function select_target 

Source
pub fn select_target(
    pattern: &EncodedTriplePattern,
) -> Result<(PartitionAxis, IndexPermutation), RouterError>
Expand description

Select partition axis and preferred index permutation for pattern.

Routing rules (MVP):

  • P = rdf:type and O bound → O + TSG
  • S and O bound, P unbound → S + SOPG (never OSP)
  • O bound otherwise → O + OPSG
  • P bound, O unbound → P + best of PSOG/POSG
  • S bound only → S + best of SPOG/SOPG

Phase 7 replaces heuristic choice with sketch-based selectivity.