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