public abstract class FacetView
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FacetView.SortFunction |
static interface |
FacetView.Transformer<T> |
static interface |
FacetView.Visitor |
Modifier and Type | Field and Description |
---|---|
boolean |
aggregateScores
Deprecated.
|
static boolean |
DEFAULT_AGGREGATE_SCORES |
static int |
DEFAULT_MAX_CATEGORIES |
static int |
DEFAULT_MAX_CATEGORIES_PER_LEVEL |
static int |
DEFAULT_MIN_DOCS_PER_CATEGORY |
static boolean |
DEFAULT_REVERSE |
static java.lang.String |
DEFAULT_SORT_FUNCTION |
java.lang.String |
explicitSortOrderValues |
int |
maxCategories |
int |
maxCategoriesPerLevel |
int |
minDocsPerCategory |
boolean |
reverse |
java.lang.String |
sortAggregationFunction |
java.lang.String |
sortFunction |
Constructor and Description |
---|
FacetView() |
FacetView(FacetView o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
accept(FacetView.Transformer<T> transformer,
T[] t) |
abstract void |
accept(FacetView.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FacetView.
|
static FacetView |
fromString(java.lang.String s)
String representation of this FacetView.
|
java.lang.String |
getExplicitSortOrderValues()
Ordered list of values used for explicit sort, comma-separated (use the backslash to escape a comma).
|
int |
getMaxCategories()
Maximum number of categories to display in the facet.
0 means all categories will be displayed. |
int |
getMaxCategoriesPerLevel()
Maximum number of facet values in each level of the categories hierarchy.
0 means that all values are selected. The sortFunction is used to select the "best" facet values for each level. |
int |
getMinDocsPerCategory()
Minimum number of docs in a category for it to be included in the Refinements panel.
|
java.lang.String |
getSortAggregationFunction()
Aggregation function used to sort by aggregation values.
|
java.lang.String |
getSortFunction()
Specifies a sorting function:
Aggregation Value: Sorts the categories using one of the aggregation functions specified in "Aggregations". |
FacetView.SortFunction |
getSortFunctionAsEnum()
Specifies a sorting function:
Aggregation Value: Sorts the categories using one of the aggregation functions specified in "Aggregations". |
static boolean |
isA(java.lang.String str,
FacetView.SortFunction item) |
boolean |
isAggregateScores()
Deprecated.
|
static boolean |
isOneOf(java.lang.String str,
FacetView.SortFunction... items) |
boolean |
isReverse()
Reverse sorting order.
|
FacetView |
makeCopy() |
static FacetView |
readFrom(java.io.InputStream is)
Read this FacetView from an XML fragment.
|
void |
setAggregateScores(boolean aggregateScores)
Deprecated.
|
void |
setExplicitSortOrderValues(java.lang.String explicitSortOrderValues)
Ordered list of values used for explicit sort, comma-separated (use the backslash to escape a comma).
|
void |
setMaxCategories(int maxCategories)
Maximum number of categories to display in the facet.
0 means all categories will be displayed. |
void |
setMaxCategoriesPerLevel(int maxCategoriesPerLevel)
Maximum number of facet values in each level of the categories hierarchy.
0 means that all values are selected. The sortFunction is used to select the "best" facet values for each level. |
void |
setMinDocsPerCategory(int minDocsPerCategory)
Minimum number of docs in a category for it to be included in the Refinements panel.
|
void |
setReverse(boolean reverse)
Reverse sorting order.
|
void |
setSortAggregationFunction(java.lang.String sortAggregationFunction)
Aggregation function used to sort by aggregation values.
|
void |
setSortFunction(FacetView.SortFunction item)
Specifies a sorting function:
Aggregation Value: Sorts the categories using one of the aggregation functions specified in "Aggregations". |
void |
setSortFunction(java.lang.String sortFunction)
Specifies a sorting function:
Aggregation Value: Sorts the categories using one of the aggregation functions specified in "Aggregations". |
java.lang.String |
toString()
String representation of this FacetView.
|
FacetView |
withAggregateScores(boolean aggregateScores)
Deprecated.
|
FacetView |
withAggregateScores(java.lang.Boolean aggregateScores)
Deprecated.
|
FacetView |
withExplicitSortOrderValues(java.lang.String explicitSortOrderValues) |
FacetView |
withMaxCategories(int maxCategories) |
FacetView |
withMaxCategories(java.lang.Integer maxCategories) |
FacetView |
withMaxCategoriesPerLevel(int maxCategoriesPerLevel) |
FacetView |
withMaxCategoriesPerLevel(java.lang.Integer maxCategoriesPerLevel) |
FacetView |
withMinDocsPerCategory(int minDocsPerCategory) |
FacetView |
withMinDocsPerCategory(java.lang.Integer minDocsPerCategory) |
FacetView |
withReverse(boolean reverse) |
FacetView |
withReverse(java.lang.Boolean reverse) |
FacetView |
withSortAggregationFunction(java.lang.String sortAggregationFunction) |
FacetView |
withSortFunction(java.lang.String sortFunction) |
void |
writeTo(java.io.OutputStream os) |
public int minDocsPerCategory
public static final int DEFAULT_MIN_DOCS_PER_CATEGORY
public int maxCategories
public static final int DEFAULT_MAX_CATEGORIES
public int maxCategoriesPerLevel
public static final int DEFAULT_MAX_CATEGORIES_PER_LEVEL
public java.lang.String sortFunction
public static final java.lang.String DEFAULT_SORT_FUNCTION
public java.lang.String sortAggregationFunction
public java.lang.String explicitSortOrderValues
public boolean reverse
public static final boolean DEFAULT_REVERSE
@Deprecated public boolean aggregateScores
public static final boolean DEFAULT_AGGREGATE_SCORES
public FacetView()
public FacetView(FacetView o)
public static boolean isA(java.lang.String str, FacetView.SortFunction item)
public static boolean isOneOf(java.lang.String str, FacetView.SortFunction... items)
public void setSortFunction(FacetView.SortFunction item)
public FacetView.SortFunction getSortFunctionAsEnum()
public void setMinDocsPerCategory(int minDocsPerCategory)
public int getMinDocsPerCategory()
public FacetView withMinDocsPerCategory(int minDocsPerCategory)
public FacetView withMinDocsPerCategory(java.lang.Integer minDocsPerCategory)
public void setMaxCategories(int maxCategories)
public int getMaxCategories()
public FacetView withMaxCategories(int maxCategories)
public FacetView withMaxCategories(java.lang.Integer maxCategories)
public void setMaxCategoriesPerLevel(int maxCategoriesPerLevel)
public int getMaxCategoriesPerLevel()
public FacetView withMaxCategoriesPerLevel(int maxCategoriesPerLevel)
public FacetView withMaxCategoriesPerLevel(java.lang.Integer maxCategoriesPerLevel)
public void setSortFunction(java.lang.String sortFunction)
public java.lang.String getSortFunction()
public FacetView withSortFunction(java.lang.String sortFunction)
public void setSortAggregationFunction(java.lang.String sortAggregationFunction)
public java.lang.String getSortAggregationFunction()
public FacetView withSortAggregationFunction(java.lang.String sortAggregationFunction)
public void setExplicitSortOrderValues(java.lang.String explicitSortOrderValues)
public java.lang.String getExplicitSortOrderValues()
public FacetView withExplicitSortOrderValues(java.lang.String explicitSortOrderValues)
public void setReverse(boolean reverse)
public boolean isReverse()
public FacetView withReverse(boolean reverse)
public FacetView withReverse(java.lang.Boolean reverse)
@Deprecated public void setAggregateScores(boolean aggregateScores)
@Deprecated public boolean isAggregateScores()
@Deprecated public FacetView withAggregateScores(boolean aggregateScores)
@Deprecated public FacetView withAggregateScores(java.lang.Boolean aggregateScores)
public FacetView makeCopy()
public static FacetView readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static FacetView fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
public abstract void accept(FacetView.Visitor visitor) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public abstract <T> T accept(FacetView.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.