-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FMWK-55 Supporting Map and List filtering (integer only), refactoring Qualifier, AerospikeCriteria, AerospikeQueryCreator #434
Conversation
agrgr
commented
Oct 12, 2022
•
edited
Loading
edited
- refactoring Qualifier switch-case
- Qualifier telescoping constructors into a Builder
- AerospikeCriteria constructors into a Builder
- Qualifier FilterOperation enum out as a separate class
- removing Criteria class
- adding support for querying by map elements similar to findByPojoField
- increasing readability, reducing excessive code etc.
- test coverage
…eld for the first level POJOs
…eld for the first level POJOs
…tors, initial commit
…changes in the branch FMWK-54
…lterOperation enum on an upper level
…ring Qualifier, AerospikeQueryCreator, FilterOperation
…st (filtering by string elements is not supported so far due to clientside)
…alifier-constructors # Conflicts: # src/main/java/org/springframework/data/aerospike/query/Qualifier.java # src/test/java/org/springframework/data/aerospike/repository/PersonRepositoryQueryTests.java # src/test/java/org/springframework/data/aerospike/sample/Person.java
…alifier-constructors # Conflicts: # src/main/java/org/springframework/data/aerospike/query/Qualifier.java # src/main/java/org/springframework/data/aerospike/repository/query/AerospikeQueryCreator.java # src/test/java/org/springframework/data/aerospike/repository/PersonRepositoryQueryTests.java # src/test/java/org/springframework/data/aerospike/sample/Person.java
…alifier-constructors
…teria-and-Qualifier-constructors' into FMWK-55-refactoring-AerospikeCriteria-and-Qualifier-constructors
…alifier-constructors # Conflicts: # src/test/java/org/springframework/data/aerospike/repository/PersonRepositoryQueryTests.java
…alifier-constructors
src/test/java/org/springframework/data/aerospike/sample/PersonRepository.java
Show resolved
Hide resolved
…teria-and-Qualifier-constructors' into FMWK-55-refactoring-AerospikeCriteria-and-Qualifier-constructors
…teria-and-Qualifier-constructors' into FMWK-55-refactoring-AerospikeCriteria-and-Qualifier-constructors
@@ -67,7 +67,11 @@ public Qualifier getCriteriaObject() { | |||
for (Criteria c : this.criteriaChain) { | |||
qualifiers.add(c.getCriteriaObject()); | |||
} | |||
return new Qualifier(op, qualifiers.toArray(new Qualifier[0])); | |||
// return new Qualifier(op, qualifiers.toArray(new Qualifier[0])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Criteria class is going to be removed (as discussed)
…alifier-constructors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there estimates or milestones for release?
…teria-and-Qualifier-constructors' into FMWK-55-refactoring-AerospikeCriteria-and-Qualifier-constructors # Conflicts: # src/main/java/org/springframework/data/aerospike/query/FilterOperation.java # src/test/java/org/springframework/data/aerospike/sample/PersonRepository.java
@ijusti, there is secondary index related work left, as far as I know |
} | ||
|
||
@Override | ||
public Filter secIndexFilter(Map<String, Object> map) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change secIndexFilter
to sIndexFilter
(it's more common in most of Aerospike documentation regarding secondary indexes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
protected Filter geoWithinRadius(IndexCollectionType collectionType, Map<String, Object> map) { | ||
return Filter.geoContains(getField(map), getValue1(map).toString()); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove 3 unnecessary spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done