Class OpenDJConnection.OpenDJSearchIterator.SearchResultIterator

  • All Implemented Interfaces:
    org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>, org.forgerock.opendj.ldap.SearchResultHandler
    Enclosing class:
    OpenDJConnection.OpenDJSearchIterator

    protected class OpenDJConnection.OpenDJSearchIterator.SearchResultIterator
    extends Object
    implements org.forgerock.opendj.ldap.SearchResultHandler
    Search results handler for storing entries returned by a search operation.
    • Field Detail

      • result

        private org.forgerock.opendj.ldap.responses.Result result
        Search result.
    • Constructor Detail

      • SearchResultIterator

        protected SearchResultIterator()
    • Method Detail

      • next

        public SearchItem next()
        Returns the next search item from the queue.
        Returns:
        search item
      • getResult

        public org.forgerock.opendj.ldap.responses.Result getResult()
        Returns the result of the search.
        Returns:
        search result
      • hasNext

        public boolean hasNext()
        Whether the queue is empty.
        Returns:
        whether the queue is empty
      • handleErrorResult

        public void handleErrorResult​(org.forgerock.opendj.ldap.ErrorResultException e)
        Specified by:
        handleErrorResult in interface org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>
      • handleResult

        public void handleResult​(org.forgerock.opendj.ldap.responses.Result r)
        Specified by:
        handleResult in interface org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>
      • handleEntry

        public boolean handleEntry​(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)
        Specified by:
        handleEntry in interface org.forgerock.opendj.ldap.SearchResultHandler
      • handleReference

        public boolean handleReference​(org.forgerock.opendj.ldap.responses.SearchResultReference ref)
        Specified by:
        handleReference in interface org.forgerock.opendj.ldap.SearchResultHandler