|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.lucene.stats.StatsRequest
public class StatsRequest
Request to obtain Lucene index statistics.
Constructor Summary | |
---|---|
StatsRequest(RequestContext requestContext)
Constructs with an associated request context. |
Method Summary | |
---|---|
String |
getBaseQueryUrl()
Gets the base URL used to construct a REST query. |
String |
getBaseStatsUrl()
Gets the base URL used to construct a stats request. |
String[] |
getCollectableFieldNames(IndexReader reader)
Gets the field names for which statistics can be collected. |
OpenBitSet |
getDocumentFilterBitSet()
Gets the filter bitset representing the set of documents for which statistics will be collected. |
RequestContext |
getRequestContext()
Gets the underlying request context. |
String |
getResponseFormat()
Gets the response format (html|json) |
PrintWriter |
getResponseWriter()
Gets the writer to be used wjen generating the response. |
String |
getSortBy()
Gets the sort by parameter. |
Storeable |
getStoreable(String fieldName)
Gets the storable associated with a field name. |
boolean |
isFieldCollectable(String fieldName)
Determines if statistics can be collected for a field. |
void |
prepare(IndexReader reader)
Prepares the request prior to statistics collection. |
void |
setResponseFormat(String format)
Sets the response format (html|json) |
void |
setResponseWriter(PrintWriter writer)
Sets the writer to be used wjen generating the response. |
void |
setSortBy(String sortBy)
Sets the sort by parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatsRequest(RequestContext requestContext)
requestContext
- the active request contextMethod Detail |
---|
public String getBaseQueryUrl()
public String getBaseStatsUrl()
public OpenBitSet getDocumentFilterBitSet()
public RequestContext getRequestContext()
public String getResponseFormat()
public void setResponseFormat(String format)
format
- the response formatpublic PrintWriter getResponseWriter()
public void setResponseWriter(PrintWriter writer)
writer
- the response writerpublic String getSortBy()
public void setSortBy(String sortBy)
sortBy
- the sort by parameterpublic String[] getCollectableFieldNames(IndexReader reader)
reader
- the Lucene index reader
public Storeable getStoreable(String fieldName)
fieldName
- the subject field name
public boolean isFieldCollectable(String fieldName)
fieldName
- the field name
public void prepare(IndexReader reader) throws IOException
reader
- the Lucene index reader
IOException
- if an index i/o exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |