net.opentsdb.search
public class SearchQuery extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SearchQuery.SearchType
Types of searches to execute, chooses the different indexes and/or alters
 the output format 
 | 
| Constructor and Description | 
|---|
SearchQuery()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getLimit()  | 
String | 
getQuery()  | 
List<Object> | 
getResults()  | 
int | 
getStartIndex()  | 
float | 
getTime()  | 
int | 
getTotalResults()  | 
SearchQuery.SearchType | 
getType()  | 
static SearchQuery.SearchType | 
parseSearchType(String type)
Converts the human readable string to the proper enum 
 | 
void | 
setLimit(int limit)  | 
void | 
setQuery(String query)  | 
void | 
setResults(List<Object> results)  | 
void | 
setStartIndex(int start_index)  | 
void | 
setTime(float time)  | 
void | 
setTotalResults(int total_results)  | 
void | 
setType(SearchQuery.SearchType type)  | 
public static SearchQuery.SearchType parseSearchType(String type)
type - The string to parseIllegalArgumentException - if the type is missing or wsa not
 recognizedpublic SearchQuery.SearchType getType()
public String getQuery()
public int getLimit()
public int getStartIndex()
public int getTotalResults()
public float getTime()
public void setType(SearchQuery.SearchType type)
type - The type of query to executepublic void setQuery(String query)
query - The query to executepublic void setLimit(int limit)
limit - A limit to the number of results to returnpublic void setStartIndex(int start_index)
start_index - Used for paging through a result set, starts at 0public void setTotalResults(int total_results)
total_results - The total number of results matched on the querypublic void setTime(float time)
time - The amount of time it took to complete the query