| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private int[] | |
| private int | |
| private int | |
| private CollationWeights. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public boolean | Returns: true if it is possible to fit n elements between the limitsA collation element weight; the ranges will be filled to cover
weights greater than this one. lowerLimit, long A collation element weight; the ranges will be filled to cover
weights less than this one. upperLimit, int The number of collation element weights w necessary such that
lowerLimit
Determine heuristically what ranges to use for a given number of weights between (excluding) two limits. private boolean |
| private boolean |
| private int |
| private static long |
| private static int |
| private boolean | getWeightRanges(long lowerLimit, long upperLimit)
Takes two CE weights and calculates the possible ranges of weights between the two limits, excluding them. private static int |
| private long |
| private long |
| private static long |
| public void |
| public void |
| public void |
| private void |
| public static int |
| public long | Returns: The next weight in the ranges, or 0xffffffff if there is none left.Given a set of ranges calculated by allocWeights(), iterate through the weights. private static long |
| private static long |
| private static long |
| |
| maxBytes | back to summary |
|---|---|
| private int[] maxBytes | |
| middleLength | back to summary |
|---|---|
| private int middleLength | |
| minBytes | back to summary |
|---|---|
| private int[] minBytes | |
| rangeCount | back to summary |
|---|---|
| private int rangeCount | |
| rangeIndex | back to summary |
|---|---|
| private int rangeIndex | |
| ranges | back to summary |
|---|---|
| private CollationWeights. | |
| CollationWeights | back to summary |
|---|---|
| public CollationWeights() | |
| allocWeights | back to summary |
|---|---|
| public boolean allocWeights(long lowerLimit, long upperLimit, int n) Determine heuristically what ranges to use for a given number of weights between (excluding) two limits.
| |
| allocWeightsInMinLengthRanges | back to summary |
|---|---|
| private boolean allocWeightsInMinLengthRanges(int n, int minLength) | |
| allocWeightsInShortRanges | back to summary |
|---|---|
| private boolean allocWeightsInShortRanges(int n, int minLength) | |
| countBytes | back to summary |
|---|---|
private int countBytes(int idx)
| |
| decWeightTrail | back to summary |
|---|---|
| private static long decWeightTrail(long weight, int length) | |
| getWeightByte | back to summary |
|---|---|
| private static int getWeightByte(long weight, int idx) | |
| getWeightRanges | back to summary |
|---|---|
| private boolean getWeightRanges(long lowerLimit, long upperLimit) Takes two CE weights and calculates the possible ranges of weights between the two limits, excluding them. For weights with up to 4 bytes there are up to 2*4-1=7 ranges. | |
| getWeightTrail | back to summary |
|---|---|
| private static int getWeightTrail(long weight, int length) | |
| incWeight | back to summary |
|---|---|
| private long incWeight(long weight, int length) | |
| incWeightByOffset | back to summary |
|---|---|
| private long incWeightByOffset(long weight, int length, int offset) | |
| incWeightTrail | back to summary |
|---|---|
| private static long incWeightTrail(long weight, int length) | |
| initForPrimary | back to summary |
|---|---|
| public void initForPrimary(boolean compressible) | |
| initForSecondary | back to summary |
|---|---|
| public void initForSecondary() | |
| initForTertiary | back to summary |
|---|---|
| public void initForTertiary() | |
| lengthenRange | back to summary |
|---|---|
| private void lengthenRange(CollationWeights. | |
| lengthOfWeight | back to summary |
|---|---|
| public static int lengthOfWeight(long weight) | |
| nextWeight | back to summary |
|---|---|
| public long nextWeight() Given a set of ranges calculated by allocWeights(), iterate through the weights. The ranges are modified to keep the current iteration state.
| |
| setWeightByte | back to summary |
|---|---|
| private static long setWeightByte(long weight, int idx, int b) | |
| setWeightTrail | back to summary |
|---|---|
| private static long setWeightTrail(long weight, int length, int trail) | |
| truncateWeight | back to summary |
|---|---|
| private static long truncateWeight(long weight, int length) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv long | |
| pack-priv int | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(CollationWeights.
the object to be compared. otherImplements java. |
| count | back to summary |
|---|---|
| pack-priv int count | |
| end | back to summary |
|---|---|
| pack-priv long end | |
| length | back to summary |
|---|---|
| pack-priv int length | |
| start | back to summary |
|---|---|
| pack-priv long start | |
| WeightRange | back to summary |
|---|---|
| private WeightRange() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CollationWeights. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |