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

Method ArrayAdd

storage/connect/Mongo3Interface.java:541–556  ·  view source on GitHub ↗
(Object bar, int n, Object val, int json)

Source from the content-addressed store, hash-verified

539 } // end of MakeArray
540
541 public boolean ArrayAdd(Object bar, int n, Object val, int json) {
542 try {
543 for (int i = ((BsonArray) bar).size(); i < n; i++)
544 ((BsonArray) bar).add(bsonull);
545
546 ((BsonArray) bar).add(ObjToBson(val, json));
547 } catch (MongoException me) {
548 SetErrmsg(me);
549 return true;
550 } catch (Exception ex) {
551 SetErrmsg(ex);
552 return true;
553 } // end try/catch
554
555 return false;
556 } // end of ArrayAdd
557
558 public boolean CollInsert(Object dob) {
559 try {

Callers

nothing calls this directly

Calls 4

ObjToBsonMethod · 0.95
SetErrmsgMethod · 0.95
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected