java.lang.Object
org.apache.jena.sparql.engine.join.BitSetMapper
Methods for converting collections to and from a bit set representation
w.r.t. a list of reference items.
For example, if the list of reference items is [ ?x ?y ?z ]
and the given items is the set { ?y ?z }
then
the resulting bit set has the value 011.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BitSetMapper
public BitSetMapper()
-
-
Method Details
-
toBitSet
Create a bit set from the binding's key set.- Implementation Note:
- This method relies on
List.indexOf(Object)
. The classImmutableUniqueList
provides an index for these lookups.
-
toList
Map the positions of all set bits to items in the list.
-