// index of the last result minus the offset. For example, if
// fromInclNo is 10 and toExclNo is 25, the limit for the query
// is 15 because we want 15 results starting after the first 10.
// We know that offset won't be null because opts is not null.
opts.limit(intExclNo - offset);
}
}
// users can provide the cursor as a Cursor or its String representation.
// If we have a cursor, add it to the fetch options