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

Delete useless variable negativeDeltas in BKDReader$IndexTree

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 8.6.2
    • Fix Version/s: None
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      In BKDReader$IndexTree, the private final variable negativeDeltas seems useless. It will be only used in BKDReader.readNodeData(), we use negativeDeltas[level * numIndexDims + splitDim] to check whether the current nod is left or right, but it can be replaced by isLeft which is the function parameter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kkewwei kkewwei
              • 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 - 40m
                  40m