Skip to content

Commit

Permalink
datastore: add new MongoDBIterator constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Feb 10, 2020
1 parent 06aa8fd commit 5753fbe
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public class MongoDBIterator<E> implements Iterator<E>, Closeable {
private ComplexTypeConverter<E, Document> converter;
private long numMatches;

public MongoDBIterator(MongoCursor<Document> iterator, long numMatches) {
this(iterator, null, numMatches);
}

public MongoDBIterator(MongoCursor<Document> iterator, ComplexTypeConverter<E, Document> converter, long numMatches) {
this.iterator = iterator;
this.converter = converter;
Expand Down

0 comments on commit 5753fbe

Please sign in to comment.