|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sharengo.wikitty.PagedResult<T>
public class PagedResult<T>
| Field Summary | |
|---|---|
protected Map<String,List<FacetTopic>> |
facets
facet asked or null if no facet |
protected int |
firstIndice
indice element in global search result |
protected int |
numFound
total number of result if we call the query for all possible result |
protected String |
queryString
query really executed |
protected List<T> |
results
list of result in the wanted interval |
| Constructor Summary | |
|---|---|
PagedResult(int FirstIndice,
int numFound,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results)
|
|
| Method Summary | ||
|---|---|---|
|
cast(WikittyService wikittyService,
Class<E> clazz,
boolean autoconvert)
Converte all result to the wanted type and return new PagedResult with this new result list. |
|
T |
get(int i)
|
|
List<T> |
getAll()
Return unmodifiable list of all result |
|
Collection<String> |
getFacetNames()
Return name of all facet used in query |
|
Map<String,List<FacetTopic>> |
getFacets()
Get map represent facets |
|
T |
getFirst()
Return the firstIndice element in result or throw an exception if no element available |
|
int |
getFirstIndice()
|
|
int |
getNumFound()
|
|
String |
getQueryString()
|
|
List<FacetTopic> |
getTopic(String facetName)
Return all topic for the specified facet |
|
int |
size()
Return the number of result in this object |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int firstIndice
protected int numFound
protected String queryString
protected List<T> results
protected Map<String,List<FacetTopic>> facets
| Constructor Detail |
|---|
public PagedResult(int FirstIndice,
int numFound,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results)
| Method Detail |
|---|
public <E extends BusinessEntityWikitty> PagedResult<E> cast(WikittyService wikittyService,
Class<E> clazz,
boolean autoconvert)
clazz - autoconvert -
public int getFirstIndice()
public int getNumFound()
public String getQueryString()
public Collection<String> getFacetNames()
public List<FacetTopic> getTopic(String facetName)
facetName - name of the wanted facet
public Map<String,List<FacetTopic>> getFacets()
public T getFirst()
public T get(int i)
public List<T> getAll()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||