|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.search.SearchQueryResult
Aggregates a set containing the result items of a query. This set is either a HashSet (if no ordering was requested) or a TreeSet (if orderby was specified) May also contain a status and a response description (For example: 507 partial result)
Field Summary | |
static int |
STATUS_BAD_GATEWAY
|
static int |
STATUS_BAD_QUERY
|
static int |
STATUS_FORBIDDEN
|
static int |
STATUS_INVALID_SCOPE
|
static int |
STATUS_OK
|
static int |
STATUS_PARTIAL_RESULT
|
static int |
STATUS_UNPROCESSABLE_ENTITY
|
Constructor Summary | |
SearchQueryResult()
Constructs an empty unorderred SearchQueryResult |
|
SearchQueryResult(java.util.Comparator comparator)
Constructs an empty orderred SearchQueryResult |
|
SearchQueryResult(java.util.Set result)
Constructs an unordered SearchQueryResult |
|
SearchQueryResult(java.util.Set result,
java.util.Comparator comparator)
Constructs an ordered SearchQueryResult |
|
SearchQueryResult(java.util.Set result,
java.util.Comparator comparator,
int limit)
|
Method Summary | |
void |
add(SearchQueryResult subResultSet)
Method add |
java.lang.String |
getDescription()
Method getDescription |
java.lang.String |
getHref()
Method getHref |
(package private) java.util.Set |
getResultSet()
Method getResultSet. |
int |
getStatus()
Method getStatus |
java.util.Iterator |
iterator()
Method iterator |
void |
setDescription(java.lang.String description)
Method setDescription |
void |
setHref(java.lang.String href)
Method setHref |
void |
setStatus(int status)
Method setStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATUS_OK
public static final int STATUS_BAD_QUERY
public static final int STATUS_INVALID_SCOPE
public static final int STATUS_PARTIAL_RESULT
public static final int STATUS_UNPROCESSABLE_ENTITY
public static final int STATUS_BAD_GATEWAY
public static final int STATUS_FORBIDDEN
Constructor Detail |
public SearchQueryResult()
public SearchQueryResult(java.util.Set result)
result
- the set containing the result itemspublic SearchQueryResult(java.util.Comparator comparator)
public SearchQueryResult(java.util.Set result, java.util.Comparator comparator)
result
- the set containing the result itemscomparator
- for orderingpublic SearchQueryResult(java.util.Set result, java.util.Comparator comparator, int limit)
Method Detail |
public void setStatus(int status)
status
- an intpublic int getStatus()
public void setDescription(java.lang.String description)
description
- a Stringpublic java.lang.String getDescription()
public void setHref(java.lang.String href)
href
- a Stringpublic java.lang.String getHref()
public void add(SearchQueryResult subResultSet)
subResultSet
- a SearchQueryResultpublic java.util.Iterator iterator()
java.util.Set getResultSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |