Source code for milvus.client.hooks.abstract

class AbstractHook:
    pass


[docs]class BaseSearchHook(AbstractHook): """ Base class of search hook. Inherited from hook class of search """ # def prepare_data(self, *args, **kwargs): # """ # Prepare grpc data. # # This is an EXPERIMENTAL API. # """ # pass
[docs] def on_response(self, *args, **kwargs): """ Indicate if deal with response from server. return bool variables. False default When return True, the method tell caller to return raw response received from server directly. In this situation, method `handle_response` will not be invoked. """ return False
[docs] def handle_response(self, _response): """ deal with response from server and return processing results """ pass