|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.browse.Browse
com.raritantechnologies.searchApp.browse.InMemoryBrowse
Builds an Browse List "on the fly" from a set of results.
| Field Summary |
| Fields inherited from class com.raritantechnologies.searchApp.browse.Browse |
cachedPages |
| Constructor Summary | |
InMemoryBrowse()
|
|
| Method Summary | |
void |
addBrowseItem(java.lang.String fieldName,
java.lang.String browseTerm,
java.lang.String displayTerm,
java.lang.String searchSource,
int counts,
int page)
|
protected int |
addPageToCache(int page,
int index)
Adds a "page" worth of filtered data and returns the actual count of rows added to the cache |
void |
dataComplete()
Data feed is complete. |
java.util.Map |
getBrowseCounts(java.lang.String fieldName)
Returns a map of searchSource --> map of term --> counts for fieldName |
int |
getMaxPage()
Get the maximum page number for the field's browse list |
int |
getMinPage()
Get the minimum page number for the field's browse list |
int |
getPageNumber(java.lang.String term)
this function figures out which page the search term should be in |
void |
initialize()
|
void |
initialize(java.util.Map initParams)
Dynamic initialization. |
boolean |
isRefreshRequired()
Use this method to see if the master list has been updated. |
boolean |
isValid()
|
void |
processResultSet(java.lang.String sessionID,
IResultSet data)
processes the IResultSet (somehow) |
void |
saveBrowseList()
|
void |
setResultField(java.lang.String resultField)
|
| Methods inherited from class com.raritantechnologies.searchApp.browse.Browse |
getBrowseDirectory, getCurrentPage, getFirstPage, getFirstPage, getNextPage, getPrevPage, initialize, initialize, isFirstPage, isLastPage, setBrowseDirectory, setBrowseHitPosition, setBrowsePageSize, setExcludes, setIncludes, wasTermFound |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.raritantechnologies.searchApp.browse.IBrowseDirectoryEntry |
initialize, initialize |
| Methods inherited from interface com.raritantechnologies.searchApp.IResultSetProcessor |
initialize |
| Constructor Detail |
public InMemoryBrowse()
| Method Detail |
public void setResultField(java.lang.String resultField)
public void initialize()
public void processResultSet(java.lang.String sessionID,
IResultSet data)
IResultSetProcessor
processResultSet in interface IResultSetProcessorpublic void dataComplete()
dataComplete in interface IResultSetProcessor
public void addBrowseItem(java.lang.String fieldName,
java.lang.String browseTerm,
java.lang.String displayTerm,
java.lang.String searchSource,
int counts,
int page)
addBrowseItem in interface IBrowseListWriterpublic void saveBrowseList()
saveBrowseList in interface IBrowseListWriter
protected int addPageToCache(int page,
int index)
Browse
addPageToCache in class Browsepublic java.util.Map getBrowseCounts(java.lang.String fieldName)
IBrowseListWriter
getBrowseCounts in interface IBrowseListWriterpublic void initialize(java.util.Map initParams)
initialize in interface IResultSetProcessorpublic boolean isRefreshRequired()
isRefreshRequired in interface IBrowseDirectoryEntrypublic int getPageNumber(java.lang.String term)
getPageNumber in interface IBrowseDirectoryEntrypublic int getMaxPage()
getMaxPage in interface IBrowseDirectoryEntrypublic int getMinPage()
getMinPage in interface IBrowseDirectoryEntrypublic boolean isValid()
isValid in interface IBrowseDirectoryEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||