Public Member Functions | |
BlobsQueueDBCursor (std::shared_ptr< BlobsQueue > queue, int key_blob_index, int value_blob_index, float timeout_secs) | |
void | Seek (const string &) override |
Seek to a specific key (or if the key does not exist, seek to the immediate next). More... | |
bool | SupportsSeek () override |
void | SeekToFirst () override |
Seek to the first key in the database. | |
void | Next () override |
Go to the next location in the database. | |
string | key () override |
Returns the current key. | |
string | value () override |
Returns the current value. | |
bool | Valid () override |
Returns whether the current location is valid - for example, if we have reached the end of the database, return false. | |
Public Member Functions inherited from caffe2::db::Cursor | |
C10_DISABLE_COPY_AND_ASSIGN (Cursor) | |
Definition at line 27 of file blobs_queue_db.h.
|
inlineoverridevirtual |
Seek to a specific key (or if the key does not exist, seek to the immediate next).
This is optional for dbs, and in default, SupportsSeek() returns false meaning that the db cursor does not support it.
Implements caffe2::db::Cursor.
Definition at line 47 of file blobs_queue_db.h.