Interface DocumentPage

All Superinterfaces:
AutoCloseable, Closeable, Iterable<DocumentRecord>, Page<DocumentRecord>

public interface DocumentPageextends Page<DocumentRecord>, Closeable
Allows iteration over documents in the page as DocumentRecord instances.

long start = 1;
DocumentPage page = documentManager.search(query, start);
try {
    for (DocumentRecord record : page) {
        String uri = record.getUri();
        // ... do something ...
    }
} finally {
    page.close();
}

NOTICE! When you finish with this instance you must call close() to free the underlying resources.