Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8397

Add DirectoryTaxonomyWriter.getCache

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      DirectoryTaxonomyWriter uses a cache to hold recently mapped labels / ordinals.  You can provide an impl when you create the class, or it will use a default impl.

       

      I'd like to add a getter, DirectoryTaxonomyWriter.getCache to retrieve the cache it's using; this is helpful for getting diagnostics (how many cached labels, how much RAM used, etc.).

        Attachments

        1. LUCENE-8397.patch
          2 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: