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 |
private Integer |
count |
private String |
explanation |
private List<String> |
keySuggestions |
private Integer |
limit |
private List<String> |
messages |
private 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(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() |
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
private final Integer offset
private final Integer limit
private Integer count
private Boolean usable
public String getAoSql()
public Integer getOffset()
public Integer getLimit()
public Integer getCount()
public void setCount(Integer count)
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 © 2020 Play SQL. All rights reserved.