|
||||||||||
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
Constructor Summary | |
---|---|
PartitionsUtils()
|
Method Summary | |
---|---|
static String |
partitionName(CategoryListParams clParams,
int partition)
Partition name by its number |
static String |
partitionNameByOrdinal(FacetIndexingParams iParams,
CategoryListParams clParams,
int ordinal)
Partition name by category ordinal |
static int |
partitionNumber(FacetIndexingParams iParams,
int ordinal)
Partition number of an ordinal. |
static int |
partitionNumber(FacetSearchParams sParams,
int ordinal)
|
static int |
partitionOffset(FacetIndexingParams iParams,
int partitionNumber,
TaxonomyReader taxonomyReader)
Get the offset for a given partition. |
static int |
partitionOffset(FacetSearchParams sParams,
int partitionNumber,
TaxonomyReader taxonomyReader)
|
static int |
partitionSize(FacetIndexingParams indexingParams,
TaxonomyReader taxonomyReader)
Get the partition size in this parameter, or return the size of the taxonomy, which is smaller. |
static int |
partitionSize(FacetSearchParams sParams,
TaxonomyReader taxonomyReader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionsUtils()
Method Detail |
---|
public static final int partitionOffset(FacetIndexingParams iParams, int partitionNumber, TaxonomyReader taxonomyReader)
public static final int partitionOffset(FacetSearchParams sParams, int partitionNumber, TaxonomyReader taxonomyReader)
partitionOffset(FacetIndexingParams, int, TaxonomyReader)
public static final int partitionSize(FacetIndexingParams indexingParams, TaxonomyReader taxonomyReader)
public static final int partitionSize(FacetSearchParams sParams, TaxonomyReader taxonomyReader)
partitionSize(FacetIndexingParams, 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 int partitionNumber(FacetSearchParams sParams, int ordinal)
partitionNumber(FacetIndexingParams, int)
public static final String partitionNameByOrdinal(FacetIndexingParams iParams, CategoryListParams clParams, int ordinal)
public static final String partitionName(CategoryListParams clParams, int partition)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |