Increment the final byte (with overflow) to provide for searching the range inclusively.
Increment the final byte (with overflow) to provide for searching the range inclusively.
Given dataset:
* ("alice", 27, "New York") * ("bob", 32, "New York") * ("bob", 35, "Seattle") * ("bobby", 25, "Atlanta") * ("jack", 27, "Los Angeles")
If end
is a Composite then only the components provided will be queried. E.g.,
import com.spotright.polidoro.model._ val se = Compositer.mkComp("bob") val pred = RangePredicate(start=se, end=se).gte
Using pred
above would result in
* ("bob", 32, "New York") * ("bob", 35, "Seattle")
For types other than CompositeType you will get "prefix" semantics where the match will
be any value that is prefixed by end
.
lte
for prefix semantics for CompositeType