T
- the type of record that is being searched.public class SearchResult<T> extends Object
Modifier and Type | Field and Description |
---|---|
String |
aoSql |
String |
correctedUserQuery |
private Integer |
count |
String |
explanation |
List<String> |
keySuggestions |
Integer |
limit |
List<String> |
messages |
Integer |
offset |
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 |
isUsable() |
void |
setCount(Integer count) |
void |
setUsable(boolean usable) |
String |
toString() |
public final String explanation
public final String correctedUserQuery
public final String aoSql
public final Integer offset
public 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()
Copyright © 2020 Play SQL. All rights reserved.