@Override
    public Hit next() throws NoSuchElementException {
        if (next == null && !getNext()) {
            throw new NoSuchElementException();
        }
        Hit ret = next;
        next = null;
        canRemove = true;
        return ret;
    }
Create a deep hit iterator based on the given hit iterator.

@param it      The hits iterator to traverse.
@param ordered Whether the hits should be ordered.
container-search/src/main/java/com/yahoo/search/result/DeepHitIterator.java