|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.clusterpoint.api.CPSResponse
com.clusterpoint.api.response.CPSSearchResponse
public class CPSSearchResponse
The CPSSearchResponse class is a wrapper for the CPSResponse class
CPSSearchRequest| Constructor Summary | |
|---|---|
CPSSearchResponse(CPSConnection conn,
java.lang.String respXML)
|
|
| Method Summary | |
|---|---|
java.util.List<org.w3c.dom.Element> |
getDocuments()
Returns the documents from the response as List of documents represented as DOM Element objecs |
java.util.List<CPSSearchFacet> |
getFacets()
Returns the facets from the response in a form of List where each element is of class CPSSearchFacet |
int |
getFound()
Returns the number of documents returned |
int |
getFrom()
Returns the position of the first document that was returned |
int |
getHits()
Returns the total number of hits - i.e. the number of documents in a storage that match the request |
int |
getTo()
Returns the position of the last document that was returned |
| Methods inherited from class com.clusterpoint.api.CPSResponse |
|---|
characters, endElement, endPrefixMapping, getCommand, getConnection, getSeconds, getStorage, setDocumentLocator, startElement, startPrefixMapping |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
|---|
endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CPSSearchResponse(CPSConnection conn,
java.lang.String respXML)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.util.List<org.w3c.dom.Element> getDocuments()
public java.util.List<CPSSearchFacet> getFacets()
public int getFound()
public int getHits()
public int getFrom()
CPSSearchRequest.setOffset(int),
CPSSearchRequest.setDocs(int)public int getTo()
CPSSearchRequest.setOffset(int),
CPSSearchRequest.setDocs(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||