public final class DuplicateFilteringResultsHandler extends Object implements SearchResultsHandler
Constructor and Description |
---|
DuplicateFilteringResultsHandler(SearchResultsHandler handler)
Filter chain for producers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
handle(ConnectorObject object)
Invoked each time a matching
ConnectorObject is returned from a
query request. |
void |
handleResult(SearchResult result)
Invoked when the request has completed successfully.
|
boolean |
isStillHandling() |
public DuplicateFilteringResultsHandler(SearchResultsHandler handler)
handler
- Producer to filter.public boolean handle(ConnectorObject object)
ResultsHandler
ConnectorObject
is returned from a
query request.handle
in interface ResultsHandler
object
- The matching ConnectorObject.true
if this handler should continue to be notified of
any remaining matching ConnectorObjects, or false
if the
remaining ConnectorObjects should be skipped for some reason
(e.g. a client side size limit has been reached or the failed to
handle the last item). If returns false
the last items
should be considers unhandled and in next page request it should
be the first item.public void handleResult(SearchResult result)
SearchResultsHandler
handleResult
in interface SearchResultsHandler
result
- The query result indicating that no more resources are to be
returned and, if applicable, including information which
should be used for subsequent paged results query requests.public boolean isStillHandling()
Copyright © 2019. All rights reserved.