You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Chinmay Soman (JIRA)" <ji...@apache.org> on 2014/07/08 20:22:04 UTC

[jira] [Created] (SAMZA-326) LevelDbKeyValueStore range implements 'from' -> 'to' instead of 'from' -> 'until'

Chinmay Soman created SAMZA-326:
-----------------------------------

             Summary: LevelDbKeyValueStore range implements 'from' -> 'to' instead of 'from' -> 'until'
                 Key: SAMZA-326
                 URL: https://issues.apache.org/jira/browse/SAMZA-326
             Project: Samza
          Issue Type: Bug
            Reporter: Chinmay Soman
            Priority: Minor


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 '<'




--
This message was sent by Atlassian JIRA
(v6.2#6252)