Package net.dona.doip.client
Class DoipSearchResults<T>
java.lang.Object
net.dona.doip.client.DoipSearchResults<T>
- Type Parameters:
T- either String for searchIds or DigitalObject for full search
- All Implemented Interfaces:
AutoCloseable,Iterable<T>,SearchResults<T>
Used internally by
DoipClient to produce search results-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the search results, releasing the connection to the server.com.google.gson.JsonArrayiterator()Returns anIteratorof the search results (either String or DigitalObject).intsize()Returns the full number of search results across all pages, or -1 if the number is not availableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dona.doip.client.SearchResults
parallelStream, spliterator, stream
-
Constructor Details
-
DoipSearchResults
- Throws:
IOException
-
-
Method Details
-
size
public int size()Description copied from interface:SearchResultsReturns the full number of search results across all pages, or -1 if the number is not available- Specified by:
sizein interfaceSearchResults<T>- Returns:
- the full number of search result across all pages, or -1 if the number is not available
-
getFacets
public com.google.gson.JsonArray getFacets()- Specified by:
getFacetsin interfaceSearchResults<T>
-
iterator
Description copied from interface:SearchResultsReturns anIteratorof the search results (either String or DigitalObject). -
close
public void close()Description copied from interface:SearchResultsCloses the search results, releasing the connection to the server.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSearchResults<T>
-