Class SearchResults
- java.lang.Object
-
- com.complexible.stardog.api.search.SearchResults
-
- All Implemented Interfaces:
java.lang.Iterable<SearchResult>
public final class SearchResults extends java.lang.Object implements java.lang.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
Constructors Constructor Description SearchResults(java.lang.String searchString, CloseableIterator<SearchResult> results, java.util.List<java.lang.String> suggestions, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOffset()
Returns the offset for this slice of results.java.lang.String
getSearchString()
Returns the search string that was used to create this result.CloseableIterator<SearchResult>
iterator()
-
-
-
Constructor Detail
-
SearchResults
public SearchResults(java.lang.String searchString, CloseableIterator<SearchResult> results, java.util.List<java.lang.String> suggestions, int offset)
-
-
Method Detail
-
getOffset
public int getOffset()
Returns the offset for this slice of results.
-
getSearchString
public java.lang.String getSearchString()
Returns the search string that was used to create this result.
-
iterator
public CloseableIterator<SearchResult> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<SearchResult>
-
-