From 06fad2bec0fc1d7f623b1bd43420631c2c932d43 Mon Sep 17 00:00:00 2001 From: sammefford Date: Mon, 16 Jun 2014 11:34:20 -0600 Subject: [PATCH] let's make BasicPage constructor take start, pageLength, and totalSize so we don't end up with a BasicPage missing those key fields --- .../java/com/marklogic/client/impl/DocumentPageImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); }