def get_db_data(self, index=0, count=0, reverse_read=False, **kwargs) -> MiningList:
     return_data = MiningList("Data")
     if index >= 0 and count > 0:
         with self._db_lock:
             db = CategoryDomainSiteDB(self._db_addr)
             return_data.data = db.get_next_patch_no_rollover(index=index, count=count, reverse_read=reverse_read, **kwargs)
             db.close()
     return return_data
Beispiel #2
0
 def get_db_data(self,
                 index=0,
                 count=0,
                 reverse_read=False,
                 **kwargs) -> MiningList:
     return_data = MiningList("Data")
     if index >= 0 and count > 0:
         with self._db_lock:
             db = CategoryDomainSiteDB(self._db_addr)
             return_data.data = db.get_next_patch_no_rollover(
                 index=index,
                 count=count,
                 reverse_read=reverse_read,
                 **kwargs)
             db.close()
     return return_data
 def get_db_stats(self) -> MiningList:
     return_obj = MiningList("DATA")
     with self._skeleton_db_lock:
         data = self._skeleton_db_manager.categories
         return_obj.data = data
     return return_obj
 def get_db_stats(self) -> MiningList:
     return_obj = MiningList("DATA")
     with self._skeleton_db_lock:
         data = self._skeleton_db_manager.categories
         return_obj.data = data
     return return_obj