| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public abstract static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int[] | levelMasks
Map from collation strength (UColAttributeValue) to a mask of Collation.Level bits up to that strength, excluding the CASE_LEVEL which is independent of the strength, and excluding IDENTICAL_LEVEL which this function does not write. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final CollationKeys. | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static CollationKeys. | |
| public static void | writeSortKeyUpToQuaternary(CollationIterator iter, boolean[] compressibleBytes, CollationSettings settings, CollationKeys.
Writes the sort key bytes for minLevel up to the iterator data's strength. |
| CASE_LOWER_FIRST_COMMON_HIGH | back to summary |
|---|---|
| private static final int CASE_LOWER_FIRST_COMMON_HIGH | |
| CASE_LOWER_FIRST_COMMON_LOW | back to summary |
|---|---|
| private static final int CASE_LOWER_FIRST_COMMON_LOW | |
| CASE_LOWER_FIRST_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int CASE_LOWER_FIRST_COMMON_MAX_COUNT | |
| CASE_LOWER_FIRST_COMMON_MIDDLE | back to summary |
|---|---|
| private static final int CASE_LOWER_FIRST_COMMON_MIDDLE | |
| CASE_UPPER_FIRST_COMMON_HIGH | back to summary |
|---|---|
private static final int CASE_UPPER_FIRST_COMMON_HIGH
| |
| CASE_UPPER_FIRST_COMMON_LOW | back to summary |
|---|---|
| private static final int CASE_UPPER_FIRST_COMMON_LOW | |
| CASE_UPPER_FIRST_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int CASE_UPPER_FIRST_COMMON_MAX_COUNT | |
| levelMasks | back to summary |
|---|---|
| private static final int[] levelMasks Map from collation strength (UColAttributeValue) to a mask of Collation.Level bits up to that strength, excluding the CASE_LEVEL which is independent of the strength, and excluding IDENTICAL_LEVEL which this function does not write. | |
| QUAT_COMMON_HIGH | back to summary |
|---|---|
| private static final int QUAT_COMMON_HIGH | |
| QUAT_COMMON_LOW | back to summary |
|---|---|
| private static final int QUAT_COMMON_LOW | |
| QUAT_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int QUAT_COMMON_MAX_COUNT | |
| QUAT_COMMON_MIDDLE | back to summary |
|---|---|
| private static final int QUAT_COMMON_MIDDLE | |
| QUAT_SHIFTED_LIMIT_BYTE | back to summary |
|---|---|
| private static final int QUAT_SHIFTED_LIMIT_BYTE | |
| SEC_COMMON_HIGH | back to summary |
|---|---|
| pack-priv static final int SEC_COMMON_HIGH | |
| SEC_COMMON_LOW | back to summary |
|---|---|
| private static final int SEC_COMMON_LOW | |
| SEC_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int SEC_COMMON_MAX_COUNT | |
| SEC_COMMON_MIDDLE | back to summary |
|---|---|
| private static final int SEC_COMMON_MIDDLE | |
| SIMPLE_LEVEL_FALLBACK | back to summary |
|---|---|
| public static final CollationKeys. | |
| TER_LOWER_FIRST_COMMON_HIGH | back to summary |
|---|---|
| private static final int TER_LOWER_FIRST_COMMON_HIGH | |
| TER_LOWER_FIRST_COMMON_LOW | back to summary |
|---|---|
| private static final int TER_LOWER_FIRST_COMMON_LOW | |
| TER_LOWER_FIRST_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int TER_LOWER_FIRST_COMMON_MAX_COUNT | |
| TER_LOWER_FIRST_COMMON_MIDDLE | back to summary |
|---|---|
| private static final int TER_LOWER_FIRST_COMMON_MIDDLE | |
| TER_ONLY_COMMON_HIGH | back to summary |
|---|---|
| private static final int TER_ONLY_COMMON_HIGH | |
| TER_ONLY_COMMON_LOW | back to summary |
|---|---|
| private static final int TER_ONLY_COMMON_LOW | |
| TER_ONLY_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int TER_ONLY_COMMON_MAX_COUNT | |
| TER_ONLY_COMMON_MIDDLE | back to summary |
|---|---|
| private static final int TER_ONLY_COMMON_MIDDLE | |
| TER_UPPER_FIRST_COMMON_HIGH | back to summary |
|---|---|
| private static final int TER_UPPER_FIRST_COMMON_HIGH | |
| TER_UPPER_FIRST_COMMON_LOW | back to summary |
|---|---|
| private static final int TER_UPPER_FIRST_COMMON_LOW | |
| TER_UPPER_FIRST_COMMON_MAX_COUNT | back to summary |
|---|---|
| private static final int TER_UPPER_FIRST_COMMON_MAX_COUNT | |
| TER_UPPER_FIRST_COMMON_MIDDLE | back to summary |
|---|---|
| private static final int TER_UPPER_FIRST_COMMON_MIDDLE | |
| CollationKeys | back to summary |
|---|---|
| private CollationKeys() | |
| getSortKeyLevel | back to summary |
|---|---|
| private static CollationKeys. | |
| writeSortKeyUpToQuaternary | back to summary |
|---|---|
| public static void writeSortKeyUpToQuaternary(CollationIterator iter, boolean[] compressibleBytes, CollationSettings settings, CollationKeys. Writes the sort key bytes for minLevel up to the iterator data's strength. Optionally writes the case level. Stops writing levels when callback.needToWrite(level) returns false. Separates levels with the LEVEL_SEPARATOR_BYTE but does not write a TERMINATOR_BYTE. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | Returns: true if the level is to be written (the base class implementation always returns true)The next level about to be written to the ByteSink. level)
|
| LevelCallback | back to summary |
|---|---|
| public LevelCallback() | |
| needToWrite | back to summary |
|---|---|
pack-priv boolean needToWrite(int level)
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected abstract void | AppendBeyondCapacity(byte[]
the array of byte bytes, int the start index within the array to be appended start, int the length of bytes to be appended n, int the length of buffer required to store the entire data (i.e. already appended
bytes + bytes to be appended by this method) length)
|
| public int | |
| public int | |
| public boolean | |
| protected abstract boolean | |
| public void |
| appended_ | back to summary |
|---|---|
| private int appended_ | |
| buffer_ | back to summary |
|---|---|
| protected byte[] buffer_ | |
| SortKeyByteSink | back to summary |
|---|---|
| public SortKeyByteSink(byte[] dest) | |
| Append | back to summary |
|---|---|
public void Append(byte[] bytes, int n)
| |
| Append | back to summary |
|---|---|
| public void Append(int b) | |
| AppendBeyondCapacity | back to summary |
|---|---|
protected abstract void AppendBeyondCapacity(byte[] bytes, int start, int n, int length)
| |
| GetRemainingCapacity | back to summary |
|---|---|
| public int GetRemainingCapacity() | |
| NumberOfBytesAppended | back to summary |
|---|---|
| public int NumberOfBytesAppended() | |
| Overflowed | back to summary |
|---|---|
| public boolean Overflowed() | |
| Resize | back to summary |
|---|---|
| protected abstract boolean Resize(int appendCapacity, int length) | |
| setBufferAndAppended | back to summary |
|---|---|
| public void setBufferAndAppended(byte[] dest, int app) Needed in Java for when we write to the buffer directly. In C++, the SortKeyByteSink is a subclass of ByteSink and lower-level code can write to that. Todo Can we make Java SortKeyByteSink have-a ByteArrayWrapper and write through to it? Or maybe create interface ByteSink, have SortKeyByteSink implement it, and have BOCSU write to that?? | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[] | |
| private static final int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv byte[] | |
| private boolean | |
| pack-priv byte | |
| pack-priv boolean | |
| pack-priv int |
| buffer | back to summary |
|---|---|
| pack-priv byte[] buffer | |
| INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int INITIAL_CAPACITY | |
| len | back to summary |
|---|---|
| pack-priv int len | |
| SortKeyLevel | back to summary |
|---|---|
| pack-priv SortKeyLevel() | |
| appendByte | back to summary |
|---|---|
| pack-priv void appendByte(int b) | |
| appendReverseWeight16 | back to summary |
|---|---|
| pack-priv void appendReverseWeight16(int w) | |
| appendTo | back to summary |
|---|---|
| pack-priv void appendTo(CollationKeys. | |
| appendWeight16 | back to summary |
|---|---|
| pack-priv void appendWeight16(int w) | |
| appendWeight32 | back to summary |
|---|---|
| pack-priv void appendWeight32(long w) | |
| data | back to summary |
|---|---|
| pack-priv byte[] data() | |
| ensureCapacity | back to summary |
|---|---|
| private boolean ensureCapacity(int appendCapacity) | |
| getAt | back to summary |
|---|---|
| pack-priv byte getAt(int index) | |
| isEmpty | back to summary |
|---|---|
| pack-priv boolean isEmpty() | |
| length | back to summary |
|---|---|
| pack-priv int length() | |