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

Method GetCollection

storage/connect/Mongo3Interface.java:150–162  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

148 } // end of MongoDisconnect
149
150 public boolean GetCollection(String name) {
151 if (DEBUG)
152 System.out.println("GetCollection: name=" + name);
153
154 try {
155 coll = db.getCollection(name).withDocumentClass(BsonDocument.class);
156 } catch (Exception e) {
157 SetErrmsg(e);
158 return true;
159 } // end try/catch
160
161 return false;
162 } // end of GetCollection
163
164 public long GetCollSize() {
165 return (coll != null) ? coll.count() : 0;

Callers

nothing calls this directly

Calls 1

SetErrmsgMethod · 0.95

Tested by

no test coverage detected