Hi,现在有问题
使有和JAVA API驱动时候,发现有一个这个插入数据的方法
SequoiadbDatasource ds = SequoiaDaoHelper.getDsInstance();
Sequoiadb sdb =SequoiaDaoHelper.getSequoidDB(ds);
CollectionSpace db = null;
DBCollection cl =null;
try {
//spaceName-newMailMagicSpace
//collectionName=newemailCollection
if(sdb.isCollectionSpaceExist(spaceName)){
db = sdb.getCollectionSpace(spaceName);
}else{
db = sdb.createCollectionSpace(spaceName);
}
if(db.isCollectionExist(collectionName)){
cl = db.getCollection(collectionName);
} else{
cl = db.createCollection(collectionName);
}
[u]cl.insert(insertor);[/u]
[u]1、想知道这个插入方法是直接传json的字符串格式么?[/u]
[u]2、此API如何是json的列表的话,是否是使用批量插入的API接口呢”?[/u]
[u]谢谢[/u]