ivankelly opened a new pull request #1285: BatchMessageIdImpl can be compared to MessageIdImpl URL: https://github.com/apache/incubator-pulsar/pull/1285 A batch message id is a MessageIdImpl with a batchIndex >= 0. Therefore, they can be compared to MessageIdImpl. If all fields other than the batchIndex are equal to a messageId, the BatchMessageIdImpl can compare its batchIndex with -1. If it is -1, it matches the MessageIdImpl. If it is greater than -1, then it is greater than the MessageIdImpl.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services