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

Add options to the "range" method in SortedIndexStorage

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      IEP-74 declares the following API for the SortedIndexStorage#range method:

          /** Exclude lower bound. */
          byte GREATER = 0;
       
          /** Include lower bound. */
          byte GREATER_OR_EQUAL = 1;
       
          /** Exclude upper bound. */
          byte LESS = 0;
       
          /** Include upper bound. */
          byte LESS_OR_EQUAL = 1 << 1;
      
          /**
           * Return rows between lower and upper bounds.
           * Fill results rows by fields specified at the projection set.
           *
           * @param low Lower bound of the scan.
           * @param up Lower bound of the scan.
           * @param scanBoundMask Scan bound mask (specify how to work with rows equals to the bounds: include or exclude).
           * @param proj Set of the columns IDs to fill results rows.
           */
          Cursor<Row> scan(Row low, Row up, byte scanBoundMask, BitSet proj);
      

      The scanBoundMask flags are currently not implemented. This API should be revised and implemented, if needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              apolovtcev Aleksandr Polovtsev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: