diff --git a/src/main/java/com/marklogic/client/impl/DocumentPageImpl.java b/src/main/java/com/marklogic/client/impl/DocumentPageImpl.java index 7498337ea..f4b52dee8 100644 --- a/src/main/java/com/marklogic/client/impl/DocumentPageImpl.java +++ b/src/main/java/com/marklogic/client/impl/DocumentPageImpl.java @@ -25,8 +25,9 @@ class DocumentPageImpl extends BasicPage implements DocumentPage private Iterable iterable; private Iterator iterator; - public DocumentPageImpl(Iterable iterable) { - super(iterable); + public DocumentPageImpl(Iterable iterable, long start, long size, long pageSize, long totalSize) { + super(iterable, start, pageSize, totalSize); + this.setSize(size); this.iterable = iterable; this.iterator = iterable.iterator(); }