ibessonov commented on code in PR #2200:
URL: https://github.com/apache/ignite-3/pull/2200#discussion_r1232109927
##########
modules/storage-rocksdb/src/main/java/org/apache/ignite/internal/storage/rocksdb/ColumnFamilyUtils.java:
##########
@@ -67,24 +93,135 @@ static ColumnFamilyType fromCfName(String cfName) {
}
/**
- * Creates a column family name by index ID.
- *
- * @param indexId Index ID.
+ * Generates a sorted index column family name by its columns descriptions.
+ * The resulting array has a {@link #SORTED_INDEX_CF_PREFIX} prefix as a
UTF8 array, followed by a number of pairs
+ * {@code {type, flags}}, where type represents ordinal of the
corresponding {@link NativeTypeSpec}, and
+ * flags store information about column's nullability and comparison order.
*
- * @see #sortedIndexId
+ * @see #comparatorFromCfName(byte[])
*/
- static String sortedIndexCfName(int indexId) {
- return SORTED_INDEX_CF_PREFIX + indexId;
+ static byte[] sortedIndexCfName(List<StorageSortedIndexColumnDescriptor>
columns) {
Review Comment:
Ok
--
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]