smiklosovic commented on code in PR #4458:
URL: https://github.com/apache/cassandra/pull/4458#discussion_r2489814840
##########
src/java/org/apache/cassandra/db/compression/CompressionDictionary.java:
##########
@@ -49,6 +49,20 @@ public interface CompressionDictionary extends AutoCloseable
*/
byte[] rawDictionary();
+ /**
+ * Get checkum of this dictionary.
+ *
+ * @return checksum of this dictionary
+ */
+ int checksum();
+
+ /**
+ * Get size of raw dictionary.
+ *
+ * @return size of raw dictionary, in bytes
+ */
+ int size();
Review Comment:
because when this is used in lightweight version, rawDictionary() will
return null. Then when converting it to CompositeData on dictionary listing, I
can't do `rawDictionary().length` on it.
Basically when fetching lightweight version, I can't derive the size of a
dictionary when I am not fetching it.
--
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]