public final class CollationWeights extends Object
| Constructor and Description |
|---|
CollationWeights() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allocWeights(long lowerLimit,
long upperLimit,
int n)
Determine heuristically
what ranges to use for a given number of weights between (excluding)
two limits.
|
void |
initForPrimary(boolean compressible) |
void |
initForSecondary() |
void |
initForTertiary() |
static int |
lengthOfWeight(long weight) |
long |
nextWeight()
Given a set of ranges calculated by allocWeights(),
iterate through the weights.
|
public void initForPrimary(boolean compressible)
public void initForSecondary()
public void initForTertiary()
public boolean allocWeights(long lowerLimit,
long upperLimit,
int n)
lowerLimit - A collation element weight; the ranges will be filled to cover
weights greater than this one.upperLimit - A collation element weight; the ranges will be filled to cover
weights less than this one.n - The number of collation element weights w necessary such that
lowerLimitpublic long nextWeight()
public static int lengthOfWeight(long weight)