public final class PartitionsUtils extends Object
Constructor and Description |
---|
PartitionsUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final int partitionOffset(FacetIndexingParams iParams, int partitionNumber, TaxonomyReader taxonomyReader)
public static final int partitionOffset(FacetSearchParams sParams, int partitionNumber, TaxonomyReader taxonomyReader)
public static final int partitionSize(FacetIndexingParams indexingParams, TaxonomyReader taxonomyReader)
public static final int partitionSize(FacetSearchParams sParams, 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 int partitionNumber(FacetSearchParams sParams, int ordinal)
public static final String partitionNameByOrdinal(FacetIndexingParams iParams, CategoryListParams clParams, int ordinal)
public static final String partitionName(CategoryListParams clParams, int partition)