Tag: nosql

Cassandra – 交易支持

我正在通过apache cassandra并处理样本数据插入,检索等。 文档非常有限。 我有兴趣知道 我们可以完全用cassandra替换像mysql / oracle这样的关系数据库吗? cassandra支持回滚/提交吗? cassandra客户端(thrift / hector)是否支持获取相关对象(我们在另一个超级列族中保存一个超级列的密钥的对象)? 这将有助于我进一步前进。 先谢谢你。

MongoDB从BasicDBObject(Java)中提取值

我无法从MongoDB中查询的文档中检索值。 例如,doc结构如下: { “_id”: { “$oid”: “50f93b74f9eccc540b302462” }, “response”: { “result”: { “code”: “1000”, “msg”: “Command completed successfully” }, “resData”: { “domain:infData”: { “domain:name”: “ritesh.com”, “domain:crDate”: “2007-06-15T12:02:36.0000Z”, “domain:exDate”: “2013-06-15T12:02:36.0000Z” } } } } 查询代码是: DBCollection collection = db.getCollection(“domains”); BasicDBObject p = new BasicDBObject(“response.resData.domain:infData.domain:name”, “ritesh.com”); DBCursor c = collection.find(p); while(c.hasNext()) { DBObject obj = c.next(); Object […]