sashapolo commented on code in PR #1076:
URL: https://github.com/apache/ignite-3/pull/1076#discussion_r974309419
##########
modules/storage-rocksdb/src/main/java/org/apache/ignite/internal/storage/rocksdb/ColumnFamilyUtils.java:
##########
@@ -58,9 +64,35 @@ static ColumnFamilyType fromCfName(String cfName) {
return PARTITION;
} else if (HASH_INDEX_CF_NAME.equals(cfName)) {
return HASH_INDEX;
+ } else if (cfName.startsWith(SORTED_INDEX_CF_PREFIX)) {
+ return SORTED_INDEX;
} else {
return UNKNOWN;
}
}
}
+
+ /**
+ * Creates a column family name by index ID.
+ *
+ * @param indexId Index ID.
+ * @return Column family name.
+ *
+ * @see #sortedIndexId
+ */
+ static String sortedIndexCfName(UUID indexId) {
+ return SORTED_INDEX_CF_PREFIX + indexId;
+ }
+
+ /**
+ * Extracts a Sorted Index ID from the given Column Family name.
+ *
+ * @param cfName Column Family name.
+ * @return Sorted Index ID.
+ *
+ * @see #sortedIndexCfName
+ */
+ static UUID sortedIndexId(String cfName) {
Review Comment:
We can, but what's the point? I think that having human readable CF names
may be useful
--
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]