Examples of countCollections()


Examples of jmockmongo.MockDB.countCollections()

    if (db == null)
      db = new MockDB(database);

    BasicBSONObject result = new BasicBSONObject("ok", 1).append("db",
        database);
    result.append("collections", db.countCollections());
    int count = db.countObjects();
    result.append("objects", count);

    // TODO ? storage sizes make not much sense here...
    int dataSize = 0;
View Full Code Here

Examples of jmockmongo.MockDB.countCollections()

        / (count * scale));
    result.append("storageSize", dataSize);
    result.append("numExtents", 1);

    // just primary key indexes
    result.append("indexes", db.countCollections());
    result.append("indexSize", 0);

    result.append("fileSize", 0);
    result.append("nsSizeMB", 0);
    return result;
View Full Code Here

Examples of org.apache.xindice.core.Collection.countCollections()

  
   public Hashtable execute(Hashtable message) throws Exception {
      Collection col = getCollection( (String) message.get(COLLECTION) );

      Hashtable result = new Hashtable();
      result.put( RESULT, new Integer( (int) col.countCollections() ) );
      return result;
   }
}
View Full Code Here

Examples of org.apache.xindice.core.Collection.countCollections()

    public Hashtable execute(Hashtable message) throws Exception {
        Collection col = getCollection((String) message.get(COLLECTION));

        Hashtable result = new Hashtable();
        result.put(RESULT, new Integer((int) col.countCollections()));
        return result;
    }
}
View Full Code Here

Examples of org.apache.xindice.core.Collection.countCollections()

    public Hashtable execute(Hashtable message) throws Exception {
        Collection col = getCollection((String) message.get(COLLECTION));

        Hashtable result = new Hashtable();
        result.put(RESULT, new Integer((int) col.countCollections()));
        return result;
    }
}
View Full Code Here

Examples of org.apache.xindice.core.Collection.countCollections()

    public Map execute(Map message) throws Exception {
        Collection col = getCollection((String) message.get(COLLECTION));

        Map result = new HashMap(3);
        result.put(RESULT, new Integer((int) col.countCollections()));
        return result;
    }
}
View Full Code Here

Examples of org.apache.xindice.core.Collection.countCollections()

    public Hashtable execute(Hashtable message) throws Exception {
        Collection col = getCollection((String) message.get(COLLECTION));

        Hashtable result = new Hashtable();
        result.put(RESULT, new Integer((int) col.countCollections()));
        return result;
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.