Commit 23320940 authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

Added reverse parameter to GetKeyRange

parent a0d8a630
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,13 @@ Changes since 0.8.2
===========================
>**NOTE:** this section will document changes to the library since the last release

## Important
- Kinetic Protocol version updated to [3.0.6](https://github.com/Seagate/kinetic-protocol/tree/3.0.6)

## New features
- Added support for Batch operations
- Added `reverse` parameter on GetKeyRange operation 

## Major changes
- `AsyncClient` has been renamed to `Client`
- A new `SecureClient` has been added to `kinetic`.
+3 −1
Original line number Diff line number Diff line
@@ -175,7 +175,8 @@ class GetPrevious(Get):

class GetKeyRange(BaseOperation):

    def _build(self, startKey=None, endKey=None, startKeyInclusive=True, endKeyInclusive=True, maxReturned=200):
    def _build(self, startKey=None, endKey=None, startKeyInclusive=True, endKeyInclusive=True, 
        maxReturned=200, reverse=False):
        if not startKey:
            startKey = ''
        if not endKey:
@@ -193,6 +194,7 @@ class GetKeyRange(BaseOperation):
        kr.startKeyInclusive = startKeyInclusive
        kr.endKeyInclusive = endKeyInclusive
        kr.maxReturned = maxReturned
        kr.reverse = reverse

        return (m, None)