Skip to content

Commit 7c3e4a6

Browse files
author
Steve Briskin
committed
removed QueryOpBuilder constructor
1 parent 3ef7a86 commit 7c3e4a6

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/main/com/mongodb/DBCursor.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,15 @@ private void _check() throws MongoException {
349349

350350
_lookForHints();
351351

352-
DBObject queryOp = new QueryOpBuilder(_query, _orderBy, _hintDBObj, _hint, _explain, _snapshot, _specialFields).get();
352+
DBObject queryOp = new QueryOpBuilder()
353+
.addQuery(_query)
354+
.addOrderBy(_orderBy)
355+
.addHint(_hintDBObj)
356+
.addHint(_hint)
357+
.addExplain(_explain)
358+
.addSnapshot(_snapshot)
359+
.addSpecialFields(_specialFields)
360+
.get();
353361

354362
_it = _collection.__find(queryOp, _keysWanted, _skip, _batchSize, _limit,
355363
_options, _readPref, getDecoder());

src/main/com/mongodb/QueryOpBuilder.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ class QueryOpBuilder {
2020

2121
public QueryOpBuilder(){
2222
}
23-
24-
public QueryOpBuilder(DBObject query, DBObject orderBy, DBObject hintObj, String hintStr, boolean explain, boolean snapshot,
25-
DBObject specialFields) {
26-
this.query = query;
27-
this.orderBy = orderBy;
28-
this.hintObj = hintObj;
29-
this.hintStr = hintStr;
30-
this.explain = explain;
31-
this.snapshot = snapshot;
32-
this.specialFields = specialFields;
33-
}
3423

3524

3625
/**

0 commit comments

Comments
 (0)