rocksdb::Iterator* NewIterator( const rocksdb::Slice *aStartKey, const rocksdb::Slice *aPDSId )
  {
#if (ROCKSDB_MAJOR < 3 )
    mIteratorOpts.prefix = NULL;
#endif
    mIteratorOpts.tailing = true;

    rocksdb::Iterator *iter = mDataDBHndl->NewIterator( mIteratorOpts );
    if( aStartKey != NULL )
    {
      iter->Seek( *aStartKey );
    }
    else
    {
      iter->SeekToFirst();
    }
    return iter;
  }
Esempio n. 2
0
 unique_ptr<rocksdb::Iterator> NewIterator() {
     return unique_ptr<rocksdb::Iterator>(db_->NewIterator(options_));
 }