class RangeFactory {

    public static Range createDocumentSpecificRange(String shard, String docId) {
        Key start = new Key(shard, docId);
        Key end = start.followingKey(PartialKey.ROW_COLFAM);
        
        // Technically, we don't want to be inclusive of the start key,
        // however if we mark the startKey as non-inclusive, when we create
        // the fi\x00 range in IndexIterator, we lost the context of "do we
        // want a single event" or "did we get restarted and this is the last
        // event we returned.
        return new Range(start, true, end, false);
    }

}