()
| 213 | } // end of Rewind |
| 214 | |
| 215 | public int ReadNext() { |
| 216 | try { |
| 217 | if (cursor.hasNext()) { |
| 218 | doc = (BasicDBObject) cursor.next(); |
| 219 | |
| 220 | if (DEBUG) |
| 221 | System.out.println("Class doc = " + doc.getClass()); |
| 222 | |
| 223 | Colnames = doc.keySet(); |
| 224 | return Colnames.size(); |
| 225 | } else |
| 226 | return 0; |
| 227 | |
| 228 | } catch (MongoException me) { |
| 229 | SetErrmsg(me); |
| 230 | return -1; |
| 231 | } // end try/catch |
| 232 | |
| 233 | } // end of ReadNext |
| 234 | |
| 235 | public boolean Fetch(int row) { |
| 236 | if (cursor.hasNext()) { |