Class SearchResults
java.lang.Object
com.complexible.stardog.api.search.SearchResults
- All Implemented Interfaces:
Iterable<SearchResult>
A wrapper around the search results that may additionally have suggestions for an alternative search string.
- Since:
- 0.6.5
- Version:
- 4.0
- Author:
- Evren Sirin, Hector Perez-Urbina
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResults(String searchString, CloseableIterator<SearchResult> results, List<String> suggestions, int offset) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the offset for this slice of results.Returns the search string that was used to create this result.iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SearchResults
public SearchResults(String searchString, CloseableIterator<SearchResult> results, List<String> suggestions, int offset)
-
-
Method Details
-
getOffset
public int getOffset()Returns the offset for this slice of results. -
getSearchString
Returns the search string that was used to create this result. -
iterator
- Specified by:
iteratorin interfaceIterable<SearchResult>
-