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

Lift up restrictions for navigating PointValues#PointTree

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • None
    • New

    Description

      Following up LUCENE-9820, we currently do not allow some navigation combinations on the PointTree which might make a bit trappy to use it in some cases. For example we should be calling moveToChild after calling moveToParent.

      I had a second thought and realise it can be very cheap to remove this limitation. We only need a new array of integers that holds the position when reading the node data in each level (very similar to what we are doing in rightNodePositions. Then we only need to check we are in the right position whenever we navigate down the tree.

      Attachments

        Issue Links

          Activity

            People

              ivera Ignacio Vera
              ivera Ignacio Vera
              Votes:
              0 Vote for this issue
              Watchers:
              3 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