Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4674 UV3 Internal - miscellaneous
  3. UIMA-4687

UV3 improve JCas feature id use for index corruption checking and journaling

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0SDK-beta
    • Core Java Framework
    • None

    Description

      When setting (changing) values for features, sometimes index corruption checking needs to be done, and sometimes changes need to be journaled. Both of these need to identify the feature involved. This operation should be fast and memory-cache-friendly (e.g. not involve following a long chain of dereferencings).

      Add static final fields that represent features used by a particular JCas class, which have names derived from the short-feature-name, and won't collide with other names, and set these using the same JCasRegistry mechanism to unique values within a class loader. This allows the same JCas cover classes to be used with different type systems.

      Change the corruption testing logic to use BitSets and have a version which uses these indexes as well as one which uses the FeatureImpl featureCode. Keep one extra table mapping these codes to FeatureImpls, per type system.

      Attachments

        Issue Links

          Activity

            People

              schor Marshall Schor
              schor Marshall Schor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: