vldpyatkov commented on code in PR #5686:
URL: https://github.com/apache/ignite-3/pull/5686#discussion_r2072549558


##########
modules/storage-api/src/main/java/org/apache/ignite/internal/storage/util/StorageUtils.java:
##########
@@ -291,4 +292,19 @@ public static BinaryTupleComparator 
binaryTupleComparator(List<StorageSortedInde
 
         return new BinaryTupleComparator(columnCollation, columnTypes);
     }
+
+    /**
+     * Creates a comparator for a Sorted Index identified by the given columns 
descriptors.
+     */
+    public static PartialBinaryTupleComparator 
partialBinaryTupleComparator(List<StorageSortedIndexColumnDescriptor> columns) {
+        List<CatalogColumnCollation> columnCollation = new 
ArrayList<>(columns.size());
+        List<NativeType> columnTypes = new ArrayList<>(columns.size());
+
+        for (StorageSortedIndexColumnDescriptor col : columns) {
+            columnCollation.add(CatalogColumnCollation.get(col.asc(), 
!col.asc()));

Review Comment:
   This is a copy of the code above for getting a tuple comparator, so I do not 
know why it looks like this.
   Let's ask @AMashenkov.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to