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

Add type of triangle info to ShapeField encoding

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      We are currently encoding three type of triangle in ShapeField:

      • POINT: all three coordinates are equal
      • LINE: two coordinates are equal
      • TRIANGLE: all coordinates are different

      Because we still have two unused bits, it might be worthy to encode this information in those two bits as follows:

      • 0 0 : Unknown so this is an index created before adding this information. We can compute in this case the information while decoding for backwards compatibility.
      • 1 0: The encoded triangle is a POINT
      • 0 1: The encoded triangle is a LINE
      • 1 1: The encoded triangle is a TRIANGLE

      We can later leverage this information so we don't need to decode all dimensions in case of POINT and LINE and we are currently computing in some of the methods ithe type of triangle we are dealing with, This will go as well.

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ivera Ignacio Vera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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