Class StringSet

java.lang.Object
org.apache.uima.cas.impl.StringSet

final class StringSet extends Object
Like string heap, but keeps strings in a hashmap (for quick testing) and an array list. This is used to emulate how v2 keeps strings, to support backwards compatibility for low-level access
  • Field Details

  • Constructor Details

    • StringSet

      StringSet()
  • Method Details

    • reset

      void reset()
    • getStringForCode

      String getStringForCode(int stringCode)
    • getCodeForString

      int getCodeForString(String s)
      get the code for a string, adding it to the string table if not already there.
      Parameters:
      s - The string.
      Returns:
      The code corresponding to the string, which can be used in the getStringForCode call above
    • getSize

      int getSize()