()
| 222 | } // end of Rewind |
| 223 | |
| 224 | public int ReadNext() { |
| 225 | try { |
| 226 | if (cursor.hasNext()) { |
| 227 | doc = cursor.next(); |
| 228 | |
| 229 | if (DEBUG) |
| 230 | System.out.println("Class doc = " + doc.getClass()); |
| 231 | |
| 232 | Colnames = doc.keySet(); |
| 233 | return Colnames.size(); |
| 234 | } else |
| 235 | return 0; |
| 236 | |
| 237 | } catch (MongoException mx) { |
| 238 | SetErrmsg(mx); |
| 239 | } // end try/catch |
| 240 | |
| 241 | return -1; |
| 242 | } // end of ReadNext |
| 243 | |
| 244 | public boolean Fetch(int row) { |
| 245 | if (cursor.hasNext()) { |