T
- the type of record that is being searched.public class SearchResult<T> extends SearchResultBase<T>
Modifier and Type | Field and Description |
---|---|
private String |
aoSql |
private String |
correctedUserQuery |
private String |
explanation |
private List<String> |
keySuggestions |
private List<String> |
messages |
private Boolean |
usable
Whether the search key can be used as-is for a key.
|
count, limit, offset
Constructor and Description |
---|
SearchResult(List<T> results,
int offset,
int limit,
int count) |
SearchResult(String explanation,
String correctedUserQuery,
String aoSql,
int offset,
int limit,
int count,
List<T> results) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String message) |
boolean |
addAllMessages(List<String> messages) |
void |
addKeySuggestions(Set<String> suggestions) |
String |
getAoSql() |
String |
getCorrectedUserQuery() |
String |
getExplanation() |
List<String> |
getKeySuggestions() |
List<String> |
getMessages() |
String |
getParsingResult() |
boolean |
isUsable() |
void |
setUsable(boolean usable) |
String |
toString() |
getCount, getLimit, getOffset, getResults, getResultsForModification, getResultsForSort, hasMore, isPaginationActive, setCount
private final String explanation
private final String correctedUserQuery
private final String aoSql
private Boolean usable
public SearchResult(String explanation, String correctedUserQuery, String aoSql, int offset, int limit, int count, List<T> results)
public String getAoSql()
public String getParsingResult()
public boolean add(String message)
public String getCorrectedUserQuery()
public String getExplanation()
public void setUsable(boolean usable)
public boolean isUsable()
Copyright © 2022 Requirement Yogi. All rights reserved.