Alternator icon indicating copy to clipboard operation
Alternator copied to clipboard

Implement Comparison Operators

Open mboudreau opened this issue 13 years ago • 2 comments

In current version 0.1.2, only these following operators have been implemented: LT,LE,GT,GE and BETWEEN

The rest needs to be added.

mboudreau avatar Apr 06 '12 16:04 mboudreau

The .scan method also supports IN. The .query method also supports IN, BEGINS_WITH, and CONTAINS via the method ItemRangeGroup.filterItemsByRangeKeyCondition as of Pull Request 50

https://github.com/mboudreau/Alternator/pull/50

rrutt avatar Jan 31 '13 18:01 rrutt

As part of Pull Request 66 I added support for the BETWEEN, BEGINS_WITH, and CONTAINS to the scan filter, and corrected the GE scan filter's comparison direction.

https://github.com/mboudreau/Alternator/pull/66

Note that comparisons for numeric attributes are still treated as string values, so that 2 GT 10 because "2" > "10" when using a string comparison. Similarly 123 CONTAINS 2 because "123".contains("2")

rrutt avatar May 22 '13 20:05 rrutt