ygerzhedovich commented on a change in pull request #498:
URL: https://github.com/apache/ignite-3/pull/498#discussion_r769740760
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/util/Commons.java
##########
@@ -598,12 +601,12 @@ public static int nextPowerOf2(int v) {
* @param elems Elems.
* @return The longest possible prefix of {@code seq}.
*/
- public static <T> List<T> maxPrefix(List<T> seq, Collection<T> elems) {
- List<T> res = new ArrayList<>();
+ public static IntList maxPrefix(List<Integer> seq, Collection<Integer>
elems) {
Review comment:
seems you could use ImutableIntList intead of List<Integer> here +
rewrite iteration through the collection + amend Set<Integer>....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]