def create_partition(self, partition_name, check_task=None, check_items=None, description=""): func_name = sys._getframe().f_code.co_name res, check = api_request([self.collection.create_partition, partition_name, description]) check_result = ResponseChecker(res, func_name, check_task, check_items, check, partition_name=partition_name).run() return res, check_result
def has_partition(self, partition_name, check_task=None, check_items=None): func_name = sys._getframe().f_code.co_name res, succ = api_request([self.collection.has_partition, partition_name]) check_result = ResponseChecker(res, func_name, check_task, check_items, succ, partition_name=partition_name).run() return res, check_result
def list_connections(self, check_task=None, check_items=None): func_name = sys._getframe().f_code.co_name response, is_succ = api_request([self.connection.list_connections]) check_result = ResponseChecker(response, func_name, check_task, check_items, is_succ).run() return response, check_result
def has_index(self, check_task=None, check_items=None): func_name = sys._getframe().f_code.co_name res, check = api_request([self.collection.has_index]) check_result = ResponseChecker(res, func_name, check_task, check_items, check).run() return res, check_result
def get_compaction_plans(self, timeout=None, check_task=None, check_items={}, **kwargs): timeout = TIMEOUT if timeout is None else timeout func_name = sys._getframe().f_code.co_name res, check = api_request([self.collection.get_compaction_plans, timeout], **kwargs) check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() return res, check_result
def delete(self, expr, partition_name=None, timeout=None, check_task=None, check_items=None, **kwargs): timeout = TIMEOUT if timeout is None else timeout func_name = sys._getframe().f_code.co_name res, check = api_request([self.collection.delete, expr, partition_name, timeout], **kwargs) check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() return res, check_result