public void setToLast() {
        if (flattenedItems != null)
                currentIndex = flattenedItems.size() - 1;
        else
                currentIndex = -1;
    }
Sets the item iterator to point to the last item:
container-search/src/main/java/com/yahoo/prelude/semantics/engine/Evaluation.java