Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4681

Create WeakReference Map to replace Table.ID constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      Taken from feedback on the PR #279:
      Could maybe avoid duplicates by making constructor (of Table.ID) private and doing Table.ID.of(tableId), which draws from an internal WeakReference map.

      If the object deduplication in KeyExtent is still valid, this can be pushed down to the Table.ID and Namespace.ID classes, replacing the optimization in KeyExtent.

      Attachments

        Issue Links

          Activity

            People

              milleruntime Michael Miller
              milleruntime Michael Miller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 20m
                  5h 20m