public class DefaultFacetIndexingParams extends Object implements FacetIndexingParams
FacetIndexingParams.
Getters for partition-size, OrdinalPolicy and
PathPolicy are all final, and so the proper way to modify them when
extending this class is through fixedPartitionSize(),
fixedOrdinalPolicy() or fixedPathPolicy() accordingly.
| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_FACET_DELIM_CHAR
delimiter between a categories in a path, e.g.
|
| Constructor and Description |
|---|
DefaultFacetIndexingParams() |
DefaultFacetIndexingParams(CategoryListParams categoryListParams) |
| Modifier and Type | Method and Description |
|---|---|
int |
drillDownTermText(CategoryPath path,
char[] buffer)
Return the drilldown Term-Text which does not need to do any allocations.
|
boolean |
equals(Object obj) |
protected OrdinalPolicy |
fixedOrdinalPolicy()
"fixed" ordinal policy.
|
protected int |
fixedPartitionSize()
"fixed" partition size.
|
protected PathPolicy |
fixedPathPolicy()
"fixed" path policy.
|
Iterable<CategoryListParams> |
getAllCategoryListParams()
Return info about all category lists in the index.
|
CategoryListParams |
getCategoryListParams(CategoryPath category)
The name of the category-list to put this category in, or null if this
category should not be aggregatable.
|
char |
getFacetDelimChar()
Use
DEFAULT_FACET_DELIM_CHAR as the delimiter. |
OrdinalPolicy |
getOrdinalPolicy()
Get the policy for indexing category ordinals,
used for deciding how "high" to climb in taxonomy
from a category when ingesting its ordinals
|
int |
getPartitionSize()
Get the partition size.
|
PathPolicy |
getPathPolicy()
Get the policy for indexing category paths,
used for deciding how "high" to climb in taxonomy
from a category when ingesting its category paths.
|
int |
hashCode() |
public static final char DEFAULT_FACET_DELIM_CHAR
public DefaultFacetIndexingParams()
public DefaultFacetIndexingParams(CategoryListParams categoryListParams)
public CategoryListParams getCategoryListParams(CategoryPath category)
FacetIndexingParamsBy default, all categories are written to the same category list, but applications which know in advance that in some situations only parts of the category hierarchy needs to be counted can divide the categories into two or more different category lists.
If null is returned for a category, it means that this category should not appear in any category list, and thus counts for it cannot be aggregated. This category can still be used for drill-down, even though the count for it is not known.
getCategoryListParams in interface FacetIndexingParamspublic int drillDownTermText(CategoryPath path, char[] buffer)
FacetIndexingParams
Note: Make sure buffer is large enough.
drillDownTermText in interface FacetIndexingParamsCategoryPath.charsNeededForFullPath()protected int fixedPartitionSize()
getPartitionSize()protected OrdinalPolicy fixedOrdinalPolicy()
getOrdinalPolicy()protected PathPolicy fixedPathPolicy()
getPathPolicy()public final int getPartitionSize()
FacetIndexingParamsgetPartitionSize in interface FacetIndexingParamspublic Iterable<CategoryListParams> getAllCategoryListParams()
FacetIndexingParamsgetAllCategoryListParams in interface FacetIndexingParamsFacetIndexingParams.getCategoryListParams(CategoryPath)public final OrdinalPolicy getOrdinalPolicy()
FacetIndexingParamsgetOrdinalPolicy in interface FacetIndexingParamspublic final PathPolicy getPathPolicy()
FacetIndexingParamsgetPathPolicy in interface FacetIndexingParamspublic char getFacetDelimChar()
DEFAULT_FACET_DELIM_CHAR as the delimiter.getFacetDelimChar in interface FacetIndexingParams