Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-23650

Calcite engine. Refactor IndexScan/TableScan classes hierarchy

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17
    • None

    Description

      We have duplicated code related to partition reservation for IndexScan/TableScan classes. It would be better to have common parent class (for example, AbstractCacheScan) for both of these classes. But IndexScan is inherited from AbstractIndexScan, and this class also used by RuntimeSortedIndex, so AbstractIndexScan can be inherited from AbstractCacheScan. RuntimeSortedIndex redefine most of the methods of AbstractIndexScan as no-op, and it would be better to use some kind of tree iterator in RuntimeSortedIndex instead of AbstractIndexScan.
      This refactoring is also required for IGNITE-23562 (the new node IndexCountScan can be a child of AbstractCacheScan).

      Attachments

        Issue Links

          Activity

            People

              alex_pl Aleksey Plekhanov
              alex_pl Aleksey Plekhanov
              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 - 1h 40m
                  1h 40m