public class ReadBlobCommandGridFS extends BaseCommand<Integer>
Command for MongoMicroKernel#read(String, long, byte[], int, int)
FIXME - Reading from large blobs with small increments is slow in this implementation.
See if this could be improved with some kind of cache mechanism.| Constructor and Description |
|---|
ReadBlobCommandGridFS(com.mongodb.gridfs.GridFS gridFS,
String blobId,
long blobOffset,
byte[] buffer,
int bufferOffset,
int length)
Constructs a new
ReadBlobCommandMongo. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
execute()
Executes the
Command and returns its result. |
getNumOfRetries, needsRetry, needsRetrypublic ReadBlobCommandGridFS(com.mongodb.gridfs.GridFS gridFS,
String blobId,
long blobOffset,
byte[] buffer,
int bufferOffset,
int length)
ReadBlobCommandMongo.gridFS - GridFS instance.blobId - Blob id.blobOffset - Blob offset.buffer - Buffer.bufferOffset - Buffer offset.length - Length.Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.