parameters: (self, target_idx)
docstring: Redirect to the target position.
  
          Parameters
          ----------
          target_idx : int
              The key of instance in ``LMDB``.
  
          Returns
          -------
          None
  
          Notes
          -----
          The redirection reopens the ``LMDB``.
  
          You can drop caches by ``echo 3 > /proc/sys/vm/drop_caches``.
  
          This will disturb getting stuck when ``Database Size`` >> ``RAM Size``.
docstring_summary: Redirect to the target position.
docstring_tokens: Redirect to the target position .
function: def redirect(self, target_idx):
          """Redirect to the target position.
  
          Parameters
          ----------
          target_idx : int
              The key of instance in ``LMDB``.
  
          Returns
          -------
          None
  
          Notes
          -----
          The redirection reopens the ``LMDB``.
  
          You can drop caches by ``echo 3 > /proc/sys/vm/drop_caches``.
  
          This will disturb getting stuck when ``Database Size`` >> ``RAM Size``.
  
          """
          self._db.close()
          self._db.open(self._source)
          self._cur_idx = target_idx
          self._db.set(str(self._cur_idx).zfill(self._db_zfill))
function_tokens: def redirect ( self , target_idx ) : self . _db . close ( ) self . _db . open ( self . _source ) self . _cur_idx = target_idx self . _db . set ( str ( self . _cur_idx ) . zfill ( self . _db_zfill ) )