|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.query.WikittyQueryResult<T>
public class WikittyQueryResult<T>
Represente un resultat de requete WikittyQuery. Pour caster les
valeurs dans une autre representation vous pouvez utiliser la methode
WikittyClient#cast(org.nuiton.wikitty.query.WikittyQueryResult, java.lang.Class)
| Field Summary | |
|---|---|
protected Map<String,List<FacetTopic>> |
facets
facet asked or null if no facet |
protected Map<String,Map<String,FacetTopic>> |
facetsAsMap
facet asked of null if no facet, FacetTopic are put in map with key topic name, To use this variable, you must used getter, because, this variable is lazy loaded from facets variable. |
protected int |
first
indice of first result in global search result |
protected String |
queryName
nom du critere qui a ete uitilise (peut-etre null) si le critete n'avait pas de nom |
protected String |
queryString
query really executed (internal representation depend of search engine used |
protected List<T> |
results
list of result in the wanted interval |
protected int |
totalResult
total number of result if we call the query for all possible result |
| Constructor Summary | |
|---|---|
WikittyQueryResult(String queryName,
int first,
int totalResult,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results)
Init paged result. |
|
| Method Summary | |
|---|---|
T |
get(int i)
Return element at index. |
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. |
Map<String,Map<String,FacetTopic>> |
getFacetsAsMap()
|
int |
getFirst()
|
String |
getQueryName()
|
String |
getQueryString()
|
List<FacetTopic> |
getTopic(String facetName)
Return all topic for the specified facet. |
FacetTopic |
getTopic(String facetName,
String topicName)
Return topic for the specified facet and topic name. |
int |
getTopicCount(String facetName,
String topicName)
Return topic count for the specified facet and topic name. |
int |
getTotalResult()
|
Iterator<T> |
iterator()
Iterate on result, same as getAll().iterator(). |
T |
peek()
Return the first element in result Can throw an exception if no element available |
int |
size()
Return the number of result in this object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String queryName
protected int first
protected int totalResult
protected String queryString
protected List<T> results
protected Map<String,List<FacetTopic>> facets
protected Map<String,Map<String,FacetTopic>> facetsAsMap
| Constructor Detail |
|---|
public WikittyQueryResult(String queryName,
int first,
int totalResult,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results)
first - indice element in global search resulttotalResult - total number of result if we call the query for all possible resultqueryString - query really executedfacets - facet asked or null if no facetresults - list of result in the wanted interval| Method Detail |
|---|
public String getQueryName()
public int getFirst()
public int getTotalResult()
public String getQueryString()
public Collection<String> getFacetNames()
public List<FacetTopic> getTopic(String facetName)
facetName - name of the wanted facet
public FacetTopic getTopic(String facetName,
String topicName)
facetName - name of the wanted facettopicName - name of the wanted topic
public int getTopicCount(String facetName,
String topicName)
facetName - name of the wanted facettopicName - name of the wanted topic
public Map<String,List<FacetTopic>> getFacets()
public Map<String,Map<String,FacetTopic>> getFacetsAsMap()
public T peek()
public T get(int i)
i - index
public List<T> getAll()
public int size()
public Iterator<T> iterator()
iterator in interface Iterable<T>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||