-
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-427 Qualifier builder API redesign #744
Conversation
.setFilterOperation(FilterOperation.MAP_VAL_EQ_BY_KEY) | ||
.setKey(getKey(qualifierMap)) | ||
.setPath(path) |
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.
2 setPath's in a single QualifierBuilder?
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.
It was left after uncommenting, thanks.
@@ -1277,7 +1281,8 @@ private static Exp processMetadataFieldInOrNot(Map<QualifierKey, Object> qualifi | |||
Exp[] listElementsExp = listOfLongs.stream().map(item -> | |||
Qualifier.metadataBuilder() | |||
.setMetadataField(getMetadataField(qualifierMap)) | |||
.setFilterOperation(filterOperation) | |||
// .setFilterOperation(filterOperation) |
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.
Do we need this comment? if not let's remove
@agrgr So
Btw, keeping both is also an option which we can consider, that's what the new Client API does, for example change I might be wrong, we can get into more details privately, lets talk about it. |
@roimenashe Yes, let's discuss. Don't see any issue with having path in most cases containing only binName, this is exactly the idea - to have one field that describes whole path to the needed element, and not to require from a user to figure out what is the last element separately, or what is the correct CTX between binName and the last element (exlusive), etc. Besides, we are adding CTX support in the upcoming release, and integrating it into the path seemes like an option not to introduce new setters. Moreover, the changes allowed to clean up QualifierBuilder API, so instead of many setters there are fewer which simplifies the usage and removes all internal setters. |
Exp[] arrElementsExp = collection.stream().map(item -> | ||
Qualifier.builder() | ||
.setBinName(getBinName(qualifierMap)) | ||
.setPath(getBinName(qualifierMap)) |
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.
same here
@Beta
annotation to QualifierBuilder