Class PathFolding

java.lang.Object
com.inductiveautomation.historian.gateway.api.storage.PathFolding

public final class PathFolding extends Object
The case fold for every in-memory tag-path and gateway-name key: each code point goes through Character.toUpperCase(int) then Character.toLowerCase(int), independent of the JVM's locale. Two strings fold alike exactly when String.equalsIgnoreCase(String) holds. The database folds stored paths by the same rule, so keys built here match keys built there.
  • Method Details

    • canonical

      public static String canonical(String s)
      Folds a string to its canonical key.
      Parameters:
      s - the string to fold.
      Returns:
      the key; an all-lowercase ASCII input is returned as is.