-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove static findIn() method from YqlStatement #103
Conversation
fc72a23
to
b11a0fa
Compare
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.
👍 LGTM overall, minor stylistic changes requested
} | ||
|
||
@Override | ||
public <V extends View, ID extends Id<T>> List<V> find(Class<V> viewType, Set<ID> ids, @Nullable FilterExpression<T> filter, @Nullable OrderExpression<T> orderBy, @Nullable Integer limit) { | ||
if (ids.isEmpty()) { | ||
return List.of(); | ||
} | ||
return executor.execute(YqlStatement.findIn(type, viewType, ids, filter, orderBy, limit), ids); | ||
ViewSchema<V> viewSchema = ViewSchema.of(viewType); |
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.
minor: style: var viewSchema
will look better here, I think
} | ||
|
||
@Override | ||
public <V extends View, K> List<V> find(Class<V> viewType, String indexName, Set<K> keys, @Nullable FilterExpression<T> filter, @Nullable OrderExpression<T> orderBy, @Nullable Integer limit) { | ||
if (keys.isEmpty()) { | ||
return List.of(); | ||
} | ||
return executor.execute(YqlStatement.findIn(type, viewType, indexName, keys, filter, orderBy, limit), keys); | ||
ViewSchema<V> viewSchema = ViewSchema.of(viewType); |
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.
minor: style: var viewSchema
will look better here, I think
@@ -416,7 +423,10 @@ public <ID extends Id<T>> List<ID> findIds(Set<ID> partialIds) { | |||
if (partialIds.isEmpty()) { | |||
return List.of(); | |||
} | |||
return executor.execute(YqlStatement.findIdsIn(type, partialIds, null, defaultOrder(type), null), partialIds); | |||
OrderExpression<T> order = defaultOrder(type); |
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.
minor: style: var order
and var idSchema
will look better here, I think
b11a0fa
to
b21b4bd
Compare
Co-authored-by: Alexander Lavrukov <[email protected]>
No description provided.