Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-326

LevelDbKeyValueStore range implements 'from' -> 'to' instead of 'from' -> 'until'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.8.0
    • Component/s: kv
    • Labels:
      None

      Description

      Most built-in ordered collection data structures in Java (SortedMap, List, ...) define a range (submap / sublist) as follows:

      'from' (inclusive) -> 'until' (exclusive)

      However, the current LevelDbKeyValueStore implementation defines range as:

      'from' (inclusive) -> 'to' (inclusive)

      While this is not technically incorrect, I think we should change the semantics to follow the norm.

      P.S. This can easily be done by changing the '<=' comparison in LevelDbRangeIterator to '<'

        Attachments

        1. samza_326.patch
          2 kB
          Chinmay Soman

          Activity

            People

            • Assignee:
              cpsoman Chinmay Soman
              Reporter:
              cpsoman Chinmay Soman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: