mongo.gridfile(rmongodb)
mongo.gridfile()所属R语言包:rmongodb
The mongo.gridfile class
mongo.gridfile类
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Objects of class "mongo.gridfile" are used to access gridfiles on a MongoDB server. They are created by mongo.gridfs.find().
用于访问对象的类“mongo.gridfile”gridfiles一个MongoDB服务器上。他们创建的mongo.gridfs.find()。
mongo.gridfile objects have "mongo.gridfile" as their class and contain an externally managed pointer to the actual data used to manage operations on the gridfile. This pointer is stored in the "mongo.gridfile" attribute of the object. The object also has a "mongo.gridfs" attribute holding a pointer to the mongo.gridfs object used in creation to prevent garbage collection on the mongo.gridfs object while the mongo.gridfile is still active.
mongo.gridfile的对象“mongo.gridfile”作为自己的类,包含外部管理的实际使用管理业务的gridfile的数据的指针。这个指针被存储在的“mongo.gridfile”属性的对象。对象也有一个“mongo.gridfs”属性持有一个用于创建,防止垃圾收集的mongo.gridfs对象,而mongo.gridfile仍处于活动状态的mongo.gridfs对象的指针。
参见----------See Also----------
mongo.gridfs,<br> mongo.gridfs.find,<br> mongo.gridfile.get.filename,<br> mongo.gridfile.get.descriptor,<br> mongo.gridfile.get.filename,<br> mongo.gridfile.get.length,<br> mongo.gridfile.get.chunk.size,<br> mongo.gridfile.get.chunk.count,<br> mongo.gridfile.get.content.type,<br> mongo.gridfile.get.upload.date,<br> mongo.gridfile.get.md5,<br> mongo.gridfile.get.metadata,<br> mongo.gridfile.get.chunk,<br> mongo.gridfile.get.chunks,<br> mongo.gridfile.read,<br> mongo.gridfile.seek,<br> mongo.gridfile.pipe.
mongo.gridfs,参考mongo.gridfs.find,参考mongo.gridfile.get.filename,参考mongo.gridfile.get.descriptor,参考mongo.gridfile.get.filename,参考mongo.gridfile.get.length参考mongo.gridfile.get.chunk.size,参考mongo.gridfile.get.chunk.count,参考mongo.gridfile.get.content.type,参考mongo.gridfile.get.upload.date,参考mongo.gridfile.get.md5,参考 mongo.gridfile.get.metadata,参考mongo.gridfile.get.chunk,参考mongo.gridfile.get.chunks,参考mongo.gridfile.read,参考mongo.gridfile.seek,参考mongo.gridfile.pipe。
实例----------Examples----------
mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
gridfs <- mongo.gridfs.create(mongo, "grid")
gf <- mongo.gridfs.find(gridfs, "test.R")
test.R <- file("test2.R")
mongo.gridfile.pipe(gf, test.R)
mongo.gridfile.destroy(gf)
mongo.gridfs.destroy(gridfs)
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|