|
||||||||||
| 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.castTo(java.lang.Class, org.nuiton.wikitty.query.WikittyQueryResult)
| 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 |
offset
indice of offset 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 long |
timeConvertion
temps (nanoseconde) de transformation des resultats bruts en un autre type(calcul cote client) |
protected long |
timeQuery
temps (nanoseconde) mis pour faire la requete (calcul cote serveur) |
protected int |
totalResult
total number of result if we call the query for all possible result |
| Constructor Summary | |
|---|---|
WikittyQueryResult(String queryName,
int offset,
int totalResult,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results,
long timeQuery,
long timeConvertion)
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()
Deprecated. since 3.5 use getOffset() |
int |
getOffset()
|
String |
getQueryName()
|
String |
getQueryString()
|
long |
getTimeConvertion()
temps (nanoseconde) de transformation des resultats bruts en un autre type(calcul cote client) |
long |
getTimeQuery()
temps (nanoseconde) mis pour faire la requete (calcul cote serveur) |
List<FacetTopic> |
getTopic(Element facetName)
Return all topic for the specified facet. |
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 offset element in result Can throw an exception if no element available |
void |
setTimeConvertion(long timeConvertion)
temps (nanoseconde) de transformation des resultats bruts en un autre type(calcul cote client) |
void |
setTimeQuery(long timeQuery)
temps (nanoseconde) mis pour faire la requete (calcul cote serveur) |
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 offset
protected int totalResult
protected String queryString
protected List<T> results
protected Map<String,List<FacetTopic>> facets
protected Map<String,Map<String,FacetTopic>> facetsAsMap
protected long timeQuery
protected long timeConvertion
| Constructor Detail |
|---|
public WikittyQueryResult(String queryName,
int offset,
int totalResult,
String queryString,
Map<String,List<FacetTopic>> facets,
List<T> results,
long timeQuery,
long timeConvertion)
offset - 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()
@Deprecated public int getFirst()
getOffset()
public int getOffset()
public int getTotalResult()
public String getQueryString()
public Collection<String> getFacetNames()
public List<FacetTopic> getTopic(String facetName)
facetName - name of the wanted facet
public List<FacetTopic> getTopic(Element 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 long getTimeQuery()
public void setTimeQuery(long timeQuery)
public long getTimeConvertion()
public void setTimeConvertion(long timeConvertion)
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 | |||||||||