Skip to content

Commit

Permalink
let's make BasicPage constructor take start, pageLength, and totalSiz…
Browse files Browse the repository at this point in the history
…e so we don't end up with a BasicPage missing those key fields
  • Loading branch information
sammefford committed Jun 16, 2014
1 parent 7a3aa77 commit 06fad2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/marklogic/client/impl/DocumentPageImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ class DocumentPageImpl extends BasicPage<DocumentRecord> implements DocumentPage
private Iterable<DocumentRecord> iterable;
private Iterator<DocumentRecord> iterator;

public DocumentPageImpl(Iterable<DocumentRecord> iterable) {
super(iterable);
public DocumentPageImpl(Iterable<DocumentRecord> iterable, long start, long size, long pageSize, long totalSize) {
super(iterable, start, pageSize, totalSize);
this.setSize(size);
this.iterable = iterable;
this.iterator = iterable.iterator();
}
Expand Down

0 comments on commit 06fad2b

Please sign in to comment.