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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • kv
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: