private boolean _hasNext() throws MongoException { _check(); if (_limit > 0 && _num >= _limit) return false; return _it.hasNext(); }
private DBObject _next() throws MongoException { if (_cursorType == null) _checkType(CursorType.ITERATOR); _check(); _cur = _it.next(); _num++; if (_keysWanted != null && _keysWanted.keySet().size() > 0) { _cur.markAsPartialObject(); // throw new UnsupportedOperationException( "need to figure out partial" ); } if (_cursorType == CursorType.ARRAY) { _all.add(_cur); } return _cur; }