|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.util.PartitionsUtils
public final class PartitionsUtils
Utilities for partitions - sizes and such
Field Summary | |
---|---|
static String |
PART_NAME_PREFIX
The prefix that is added to the name of the partition. |
Constructor Summary | |
---|---|
PartitionsUtils()
|
Method Summary | |
---|---|
static String |
partitionName(int partition)
Partition name by its number |
static String |
partitionNameByOrdinal(FacetIndexingParams iParams,
int ordinal)
Partition name by category ordinal |
static int |
partitionNumber(FacetIndexingParams iParams,
int ordinal)
Partition number of an ordinal. |
static int |
partitionSize(FacetIndexingParams indexingParams,
TaxonomyReader taxonomyReader)
Get the partition size in this parameter, or return the size of the taxonomy, which is smaller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PART_NAME_PREFIX
Constructor Detail |
---|
public PartitionsUtils()
Method Detail |
---|
public static final int partitionSize(FacetIndexingParams indexingParams, TaxonomyReader taxonomyReader)
public static final int partitionNumber(FacetIndexingParams iParams, int ordinal)
This allows to locate the partition containing a certain (facet) ordinal.
FacetIndexingParams.getPartitionSize()
public static final String partitionNameByOrdinal(FacetIndexingParams iParams, int ordinal)
public static final String partitionName(int partition)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |