public void setWindow(int offset, int hits) {
        setOffset(offset);
        setHits(hits);
    }
Convenience method to set both the offset and the number of hits to return
container-search/src/main/java/com/yahoo/search/Query.java