Class MergeAdjacentValuesTransform

java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.ir.util.transform.BaseTransform
org.eclipse.rdf4j.queryrender.sparql.ir.util.transform.MergeAdjacentValuesTransform

public final class MergeAdjacentValuesTransform extends BaseTransform
Merge adjacent VALUES blocks under provably-safe conditions: - Identical variable lists (same names, same order): conjunction is equivalent to the multiset intersection of rows. The merged VALUES has the same variable list and duplicates with multiplicity = m1 * m2 per identical row. - Disjoint variable lists: conjunction is equivalent to a single multi-column VALUES with the cross product of rows (row multiplicities multiply). Variable column order is preserved as [left vars..., right vars...]. Overlapping-but-not-identical variable sets are left untouched.
  • Method Details