|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.browseengine.bobo.api.BrowseRequest
public class BrowseRequest
Browse Request.
| Constructor Summary | |
|---|---|
BrowseRequest()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addSelection(BrowseSelection sel)
Adds a browse selection |
void |
addSortField(org.apache.lucene.search.SortField sortSpec)
Add a sort spec |
void |
clearSelections()
|
void |
clearSort()
|
Map<String,BrowseSelection> |
getAllSelections()
|
int |
getCount()
Gets the number of hits to return. |
FacetHandlerInitializerParam |
getFacethandlerData(String name)
|
Map<String,FacetHandlerInitializerParam> |
getFacetHandlerDataMap()
|
FacetSpec |
getFacetSpec(String name)
Gets a facet spec |
int |
getFacetSpecCount()
Gets the number of facet specs |
Map<String,FacetSpec> |
getFacetSpecs()
|
org.apache.lucene.search.Filter |
getFilter()
Gets the default filter |
int |
getOffset()
Gets the offset. |
org.apache.lucene.search.Query |
getQuery()
Gets the search query |
BrowseSelection |
getSelection(String fieldname)
Gets selection by field name |
int |
getSelectionCount()
|
Set<String> |
getSelectionNames()
|
BrowseSelection[] |
getSelections()
Gets all added browse selections |
org.apache.lucene.search.SortField[] |
getSort()
Gets the sort criteria |
long |
getTid()
Get the transaction ID. |
boolean |
isFetchStoredFields()
|
boolean |
isShowExplanation()
|
void |
putAllSelections(Map<String,BrowseSelection> map)
|
void |
removeSelection(String name)
|
void |
setCount(int count)
Sets the number of hits to return. |
void |
setFacetHandlerData(String name,
FacetHandlerInitializerParam data)
|
void |
setFacetHandlerDataMap(Map<String,FacetHandlerInitializerParam> facetHandlerDataMap)
Sets the map between RuntimeFacetHandler names and their corresponding initialization data. |
void |
setFacetSpec(String name,
FacetSpec facetSpec)
Sets a facet spec |
void |
setFacetSpecs(Map<String,FacetSpec> facetSpecMap)
|
void |
setFetchStoredFields(boolean fetchStoredFields)
|
void |
setFilter(org.apache.lucene.search.Filter filter)
Set a default filter |
void |
setOffset(int offset)
Sets of the offset. |
void |
setQuery(org.apache.lucene.search.Query query)
Set the search query |
void |
setShowExplanation(boolean showExplanation)
|
void |
setSort(org.apache.lucene.search.SortField[] sorts)
Sets the sort criteria |
void |
setTid(long tid)
Set the transaction ID; |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BrowseRequest()
| Method Detail |
|---|
public final long getTid()
public final void setTid(long tid)
tid - public boolean isShowExplanation()
public void setShowExplanation(boolean showExplanation)
public Set<String> getSelectionNames()
public void removeSelection(String name)
public void setFacetSpecs(Map<String,FacetSpec> facetSpecMap)
public Map<String,FacetSpec> getFacetSpecs()
public Map<String,FacetHandlerInitializerParam> getFacetHandlerDataMap()
public void setFacetHandlerDataMap(Map<String,FacetHandlerInitializerParam> facetHandlerDataMap)
facetHandlerDataMap - public int getSelectionCount()
public void setFilter(org.apache.lucene.search.Filter filter)
filter - public org.apache.lucene.search.Filter getFilter()
public void clearSelections()
public int getFacetSpecCount()
setFacetSpec(String, FacetSpec),
getFacetSpec(String)public void clearSort()
public boolean isFetchStoredFields()
public void setFetchStoredFields(boolean fetchStoredFields)
public void setFacetSpec(String name,
FacetSpec facetSpec)
name - field namefacetSpec - Facet specgetFacetSpec(String)public FacetSpec getFacetSpec(String name)
name - field name
setFacetSpec(String, FacetSpec)
public void setFacetHandlerData(String name,
FacetHandlerInitializerParam data)
name - is the name of the RuntimeFacetHandler.data - is the data Bobo is to use to initialize the corresponding RuntimeFacetHandler.public FacetHandlerInitializerParam getFacethandlerData(String name)
name - is the name of the RuntimeFacetHandler.
public int getCount()
setCount(int)public void setCount(int count)
count - number of hits to return.getCount()public int getOffset()
setOffset(int)public void setOffset(int offset)
offset - offsetgetOffset()public void setQuery(org.apache.lucene.search.Query query)
query - lucene search querygetQuery()public org.apache.lucene.search.Query getQuery()
setQuery(Query)public void addSelection(BrowseSelection sel)
sel - selectiongetSelections()public BrowseSelection[] getSelections()
addSelection(BrowseSelection)public BrowseSelection getSelection(String fieldname)
fieldname -
public Map<String,BrowseSelection> getAllSelections()
public void putAllSelections(Map<String,BrowseSelection> map)
public void addSortField(org.apache.lucene.search.SortField sortSpec)
sortSpec - sort specgetSort(),
setSort(SortField[])public org.apache.lucene.search.SortField[] getSort()
setSort(SortField[]),
addSortField(SortField)public void setSort(org.apache.lucene.search.SortField[] sorts)
sorts - sort criteriaaddSortField(SortField),
getSort()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||