class DelegatingPeekingWindowIterator implements PeekingWindowIterator<V> {

    @Override
    public KeyValue<Long, V> next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        final KeyValue<Long, V> result = next;
        next = null;
        return result;
    }

    public  DelegatingPeekingWindowIterator(final WindowStoreIterator<V> underlying);

}