|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.browseengine.bobo.api.FacetSpec
public class FacetSpec
specifies how facets are to be returned for a browse
| Nested Class Summary | |
|---|---|
static class |
FacetSpec.FacetSortSpec
Sort options for facets |
| Constructor Summary | |
|---|---|
FacetSpec()
Constructor. |
|
| Method Summary | |
|---|---|
FacetSpec |
clone()
|
ComparatorFactory |
getCustomComparatorFactory()
|
int |
getMaxCount()
Gets the maximum number of choices to return |
int |
getMinHitCount()
Gets the minimum number of hits a choice would need to have to be returned. |
FacetSpec.FacetSortSpec |
getOrderBy()
Get the current choice sort order |
Map<String,String> |
getProperties()
Gets custom properties for the facet search. |
boolean |
isExpandSelection()
Gets whether we are expanding sibling choices |
FacetSpec |
setCustomComparatorFactory(ComparatorFactory comparatorFactory)
|
FacetSpec |
setExpandSelection(boolean expandSelection)
Sets whether we are expanding sibling choices |
FacetSpec |
setMaxCount(int maxCount)
Sets the maximum number of choices to return. |
FacetSpec |
setMinHitCount(int minCount)
Sets the minimum number of hits a choice would need to have to be returned. |
FacetSpec |
setOrderBy(FacetSpec.FacetSortSpec order)
Sets the choice sort order |
FacetSpec |
setProperties(Map<String,String> properties)
Sets custom properties for the facet search. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FacetSpec()
| Method Detail |
|---|
public FacetSpec setCustomComparatorFactory(ComparatorFactory comparatorFactory)
public ComparatorFactory getCustomComparatorFactory()
public FacetSpec setMinHitCount(int minCount)
minCount - minimum countgetMinHitCount()public int getMinHitCount()
setMinHitCount(int)public FacetSpec.FacetSortSpec getOrderBy()
setOrderBy(FacetSortSpec)public FacetSpec setOrderBy(FacetSpec.FacetSortSpec order)
order - sort ordergetOrderBy()public int getMaxCount()
setMaxCount(int)public FacetSpec setMaxCount(int maxCount)
maxCount - max number of choices to return, default = 0 which means allgetMaxCount()public String toString()
toString in class Objectpublic boolean isExpandSelection()
setExpandSelection(boolean)public FacetSpec setExpandSelection(boolean expandSelection)
expandSelection - indicating whether to expand sibling choices.isExpandSelection()public Map<String,String> getProperties()
public FacetSpec setProperties(Map<String,String> properties)
properties - public FacetSpec clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||