|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.index.params.DefaultFacetIndexingParams
public class DefaultFacetIndexingParams
Default implementation for 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.
Field Summary | |
---|---|
static char |
DEFAULT_FACET_DELIM_CHAR
delimiter between a categories in a path, e.g. |
Constructor Summary | |
---|---|
DefaultFacetIndexingParams()
|
|
DefaultFacetIndexingParams(CategoryListParams categoryListParams)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char DEFAULT_FACET_DELIM_CHAR
Constructor Detail |
---|
public DefaultFacetIndexingParams()
public DefaultFacetIndexingParams(CategoryListParams categoryListParams)
Method Detail |
---|
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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public char getFacetDelimChar()
DEFAULT_FACET_DELIM_CHAR
as the delimiter.
getFacetDelimChar
in interface FacetIndexingParams
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |