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)
FacetIndexingParams
By 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 FacetIndexingParams
public int drillDownTermText(CategoryPath path, char[] buffer)
FacetIndexingParams
Note: Make sure buffer
is large enough.
drillDownTermText
in interface FacetIndexingParams
CategoryPath.charsNeededForFullPath()
protected int fixedPartitionSize()
getPartitionSize()
protected OrdinalPolicy fixedOrdinalPolicy()
getOrdinalPolicy()
protected PathPolicy fixedPathPolicy()
getPathPolicy()
public final int getPartitionSize()
FacetIndexingParams
getPartitionSize
in interface FacetIndexingParams
public Iterable<CategoryListParams> getAllCategoryListParams()
FacetIndexingParams
getAllCategoryListParams
in interface FacetIndexingParams
FacetIndexingParams.getCategoryListParams(CategoryPath)
public final OrdinalPolicy getOrdinalPolicy()
FacetIndexingParams
getOrdinalPolicy
in interface FacetIndexingParams
public final PathPolicy getPathPolicy()
FacetIndexingParams
getPathPolicy
in interface FacetIndexingParams
public char getFacetDelimChar()
DEFAULT_FACET_DELIM_CHAR
as the delimiter.getFacetDelimChar
in interface FacetIndexingParams