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

Method GetCollection

storage/connect/Mongo2Interface.java:134–146  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

132 } // end of MongoDisconnect
133
134 public boolean GetCollection(String name) {
135 if (DEBUG)
136 System.out.println("GetCollection: name=" + name);
137
138 try {
139 coll = db.getCollection(name);
140 } catch (Exception e) {
141 SetErrmsg(e);
142 return true;
143 } // end try/catch
144
145 return false;
146 } // end of GetCollection
147
148 public long GetCollSize() {
149 return (coll != null) ? coll.count() : 0;

Callers 4

mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls 1

SetErrmsgMethod · 0.95

Tested by 2

mainMethod · 0.36
mainMethod · 0.36