Interface SRUScanHandler

    • Method Detail

      • onRequestStatistics

        void onRequestStatistics​(int totalBytesTransferred,
                                 long millisTotal,
                                 long millisNetwork,
                                 long millisProcessing)
        Receive notification of request statistics.
        Parameters:
        totalBytesTransferred - the total number of bytes transferred while receiving the response
        millisTotal - the total time spend processing the request
        millisNetwork - the time spend performing network operations
        millisProcessing - the time spend processing the response
      • onStartTerms

        void onStartTerms()
                   throws SRUClientException
        Receive notifications of the start of the enumeration of terms in the response.
        Throws:
        SRUClientException - any SRU exception, possibly wrapping another exception
      • onFinishTerms

        void onFinishTerms()
                    throws SRUClientException
        Receive notifications of the end of the enumeration of terms in the response.
        Throws:
        SRUClientException - any SRU exception, possibly wrapping another exception
      • onTerm

        void onTerm​(String value,
                    int numberOfRecords,
                    String displayTerm,
                    SRUWhereInList whereInList)
             throws SRUClientException
        Receive notification of a term.
        Parameters:
        value - the term (exactly) as it appears in the index
        numberOfRecords - the number of records for the current term which would be matched
        displayTerm - a string for the current term to display to the end user in place of the term itself or null if not available
        whereInList - a flag to indicate the position of the term within the complete term list or null of not available
        Throws:
        SRUClientException - any SRU exception, possibly wrapping another exception