maedhroz commented on code in PR #2420:
URL: https://github.com/apache/cassandra/pull/2420#discussion_r1242508724
##########
src/java/org/apache/cassandra/index/sai/disk/format/IndexComponent.java:
##########
@@ -79,10 +84,20 @@ public enum IndexComponent
*/
GROUP_COMPLETION_MARKER("GroupComplete");
+ public final Component.Type type;
public final String name;
IndexComponent(String name)
{
this.name = name;
+ this.type = componentType(name);
+ }
+
+ private static Component.Type componentType(String name)
+ {
+ return Component.Type.create(SAI_DESCRIPTOR + SAI_SEPARATOR +
name.toUpperCase(),
+ SAI_DESCRIPTOR + ".*." + name + ".db",
Review Comment:
Looking at `Version.defaultFileNameFormat()`, I think you'd want something
like:
`SAI_DESCRIPTOR + "\\+.*\\+" + name + ".db"`
`".*."` doesn't need the second period?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]