Class SearchUtils

java.lang.Object
io.fluxcapacitor.common.SearchUtils

public class SearchUtils extends Object
  • Field Details

  • Constructor Details

    • SearchUtils

      public SearchUtils()
  • Method Details

    • normalize

      public static String normalize(@NonNull @NonNull String text)
    • normalizeJson

      public static byte[] normalizeJson(byte[] data)
    • getGlobMatcher

      public static Predicate<String> getGlobMatcher(String pattern)
      Converts a standard POSIX Shell globbing pattern into a regular expression pattern. The result can be used with the standard java.util.regex API to recognize strings which match the glob pattern.

      From ...

      See also, the POSIX Shell language: ...

      Parameters:
      pattern - A glob pattern.
      Returns:
      A regex pattern to recognize the given glob pattern.
    • isInteger

      public static boolean isInteger(String fieldName)
    • asIntegerOrString

      public static Object asIntegerOrString(String fieldName)
    • splitInTerms

      public static List<String> splitInTerms(String query)
    • asPrimitive

      public static Object asPrimitive(Object value)
    • normalizePath

      public static String normalizePath(String queryPath)
    • escapeFieldName

      public static String escapeFieldName(String fieldName)
    • unescapeFieldName

      public static String unescapeFieldName(String fieldName)