Skip to content

Commit 06fad2b

Browse files
committed
let's make BasicPage constructor take start, pageLength, and totalSize so we don't end up with a BasicPage missing those key fields
1 parent 7a3aa77 commit 06fad2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/marklogic/client/impl/DocumentPageImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ class DocumentPageImpl extends BasicPage<DocumentRecord> implements DocumentPage
2525
private Iterable<DocumentRecord> iterable;
2626
private Iterator<DocumentRecord> iterator;
2727

28-
public DocumentPageImpl(Iterable<DocumentRecord> iterable) {
29-
super(iterable);
28+
public DocumentPageImpl(Iterable<DocumentRecord> iterable, long start, long size, long pageSize, long totalSize) {
29+
super(iterable, start, pageSize, totalSize);
30+
this.setSize(size);
3031
this.iterable = iterable;
3132
this.iterator = iterable.iterator();
3233
}

0 commit comments

Comments
 (0)