private boolean withinPartition(Map.Entry<String, Integer[]> entry, int bucketId) {
    int startingBucket = entry.getValue()[0];
    int endingBucket = startingBucket + entry.getValue()[1];
    return startingBucket <= bucketId && bucketId < endingBucket;
  }
A partition resolver that expects the actual bucket id to be the callback argument of all
operations. The partition resolver reverse engineers the fixed partition name and bucket number
from the target partitioning.

This is a bit messy, mostly because there's no good way to get the FixedPartition from the actual
bucket id without iterating over all of the fixed partitions.
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/partition/BucketTargetingFixedResolver.java