Class CollationFastLatin


  • public final class CollationFastLatin
    extends Object
    • Field Detail

      • VERSION

        public static final int VERSION
        Fast Latin format version (one byte 1..FF). Must be incremented for any runtime-incompatible changes, in particular, for changes to any of the following constants. When the major version number of the main data format changes, we can reset this fast Latin version to 1.
        See Also:
        Constant Field Values
      • BAIL_OUT_RESULT

        public static final int BAIL_OUT_RESULT
        Comparison return value when the regular comparison must be used. The exact value is not relevant for the format version.
        See Also:
        Constant Field Values
    • Method Detail

      • getOptions

        public static int getOptions​(CollationData data,
                                     CollationSettings settings,
                                     char[] primaries)
        Computes the options value for the compare functions and writes the precomputed primary weights. Returns -1 if the Latin fastpath is not supported for the data and settings. The capacity must be LATIN_LIMIT.
      • compareUTF16

        public static int compareUTF16​(char[] table,
                                       char[] primaries,
                                       int options,
                                       CharSequence left,
                                       CharSequence right,
                                       int startIndex)