netudima commented on code in PR #4245: URL: https://github.com/apache/cassandra/pull/4245#discussion_r2205815402
########## src/java/org/apache/cassandra/dht/Token.java: ########## @@ -75,6 +76,15 @@ public ByteSource asComparableBytes(Token token, ByteComparable.Version version) */ public abstract Token fromComparableBytes(ByteSource.Peekable comparableBytes, ByteComparable.Version version); + public void skipComparableBytes(ByteSource.Peekable comparableBytes, ByteComparable.Version version, IPartitioner partitioner) + { + if (partitioner.isFixedLength()) + ByteSourceInverse.skipBytes(comparableBytes, partitioner.getMaxTokenSize()); Review Comment: actually I was inspired by org.apache.cassandra.dht.Token.TokenFactory#skip(DataInputPlus in, IPartitioner p) logic, I can place it next to it as an option... Moving the logic down to the individual token classes makes sense for me as well. -- 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: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org