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

Method GetField

storage/connect/Mongo2Interface.java:400–414  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

398 } // end of GetFieldObject
399
400 public String GetField(String path) {
401 Object o = GetFieldObject(path);
402
403 if (o != null) {
404 if (o instanceof Date) {
405 Long TS = (((Date) o).getTime() / 1000);
406 return TS.toString();
407 } else if (o instanceof Boolean)
408 return (Boolean) o ? "1" : "0";
409
410 return o.toString();
411 } else
412 return null;
413
414 } // end of GetField
415
416 public Object MakeBson(String s, int json) {
417 if (json == 1 || json == 2) {

Callers 2

mainMethod · 0.45
mainMethod · 0.45

Calls 2

GetFieldObjectMethod · 0.95
getTimeMethod · 0.80

Tested by

no test coverage detected