public final class PartitionsUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PART_NAME_PREFIX
The prefix that is added to the name of the partition.
|
Constructor and Description |
---|
PartitionsUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String PART_NAME_PREFIX
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.
public static final String partitionNameByOrdinal(FacetIndexingParams iParams, int ordinal)
public static final String partitionName(int partition)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.