Description Usage Arguments Value See Also Examples
Get the chunk size of a mongo.gridfile. This is the size of the chunks into which file is broken up on the server.
1 | mongo.gridfile.get.chunk.size(gridfile)
|
gridfile |
A (mongo.gridfile) object. |
(integer) The chunk size of gridfile
.
mongo.gridfs
,
mongo.gridfs.find
,
mongo.gridfile,
mongo.gridfile.get.descriptor
,
mongo.gridfile.get.filename
,
mongo.gridfile.get.length
,
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
.
1 2 3 4 5 6 7 8 9 10 11 12 | mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
gridfs <- mongo.gridfs.create(mongo, "grid")
gf <- mongo.gridfs.find(gridfs, "test.R")
if( !is.null(gf)){
print(mongo.gridfile.get.chunk.size(gf))
mongo.gridfile.destroy(gf)
}
mongo.gridfs.destroy(gridfs)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.