You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/06/23 05:00:53 UTC

[GitHub] [pinot] icefury71 commented on a diff in pull request #8897: Enable key value byte stitching in PulsarMessageBatch

icefury71 commented on code in PR #8897:
URL: https://github.com/apache/pinot/pull/8897#discussion_r904520517


##########
pinot-plugins/pinot-stream-ingestion/pinot-pulsar/src/main/java/org/apache/pinot/plugin/stream/pulsar/PulsarMessageBatch.java:
##########
@@ -48,6 +54,10 @@ public int getMessageCount() {
 
   @Override
   public byte[] getMessageAtIndex(int index) {
+    Message<byte[]> msg = _messageList.get(index);
+    if (_enableKeyValueStitch) {
+      return stitchKeyValue(msg.getKeyBytes(), msg.getData());
+    }
     return _messageList.get(index).getData();

Review Comment:
   Done



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org