Interface SingleQueryOracle<I,​D>

    • Method Detail

      • processQuery

        default void processQuery​(Query<I,​D> query)
        Description copied from interface: MembershipOracle
        Processes a single query. When this method returns, the Query.answer(Object) method of the supplied object will have been called with an argument reflecting the SUL response to the respective query.

        The default implementation of this method will simply wrap the provided Query in a singleton Collection using Collections.singleton(Object). Implementations in subclasses should override this method to circumvent the Collection object creation, if possible.

        Specified by:
        processQuery in interface MembershipOracle<I,​D>
        Parameters:
        query - the query to process