public class PerDimensionIndexingParams extends FacetIndexingParams
FacetIndexingParams
that utilizes different category lists, defined
by the dimension specified by a category
(see
PerDimensionIndexingParams(Map, CategoryListParams)
.
A 'dimension' is defined as the first or "zero-th" component in a
CategoryPath
. For example, if a category is defined as
"Author/American/Mark Twain", then the dimension would be "Author".
clParams, DEFAULT, DEFAULT_CATEGORY_LIST_PARAMS, DEFAULT_FACET_DELIM_CHAR
Constructor and Description |
---|
PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap)
Initializes a new instance with the given dimension-to-params mapping.
|
PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap,
CategoryListParams categoryListParams)
Same as
PerDimensionIndexingParams(Map) , only the given
CategoryListParams will be used for any dimension that is not
specified in the given mapping. |
Modifier and Type | Method and Description |
---|---|
List<CategoryListParams> |
getAllCategoryListParams()
Returns a list of all
categoryListParams that
are used for facets indexing. |
CategoryListParams |
getCategoryListParams(CategoryPath category)
Returns the
CategoryListParams for the corresponding dimension
which is returned by category.getComponent(0) . |
drillDownTermText, equals, getFacetDelimChar, getPartitionSize, hashCode
public PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap)
cp.components[0]
.
NOTE: for any dimension whose CategoryListParams
is not
defined in the mapping, a default CategoryListParams
will be used.
public PerDimensionIndexingParams(Map<CategoryPath,CategoryListParams> paramsMap, CategoryListParams categoryListParams)
PerDimensionIndexingParams(Map)
, only the given
CategoryListParams
will be used for any dimension that is not
specified in the given mapping.public List<CategoryListParams> getAllCategoryListParams()
FacetIndexingParams
categoryListParams
that
are used for facets indexing.getAllCategoryListParams
in class FacetIndexingParams
public CategoryListParams getCategoryListParams(CategoryPath category)
CategoryListParams
for the corresponding dimension
which is returned by category.getComponent(0)
. If category
is null
, or was not specified in the map given to the constructor,
returns the default CategoryListParams
.getCategoryListParams
in class FacetIndexingParams
PerDimensionIndexingParams
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.