MCPcopy Create free account
hub / github.com/MariaDB/server / ReadNext

Method ReadNext

storage/connect/Mongo2Interface.java:215–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 3

SetErrmsgMethod · 0.95
nextMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected