lorcanj commented on code in PR #19404:
URL: https://github.com/apache/kafka/pull/19404#discussion_r2106746663


##########
streams/src/main/java/org/apache/kafka/streams/state/internals/SessionKeySchema.java:
##########
@@ -196,4 +196,15 @@ public static void writeBinary(final ByteBuffer buf,
         buf.putLong(endTime);
         buf.putLong(startTime);
     }
+
+    static Bytes toStoreKeyBinary(final byte[] serializedKey,
+                                  final long endTime,
+                                  final long startTime) {
+        final ByteBuffer buf = ByteBuffer.allocate(serializedKey.length + 
TIMESTAMP_SIZE + TIMESTAMP_SIZE);
+        buf.put(serializedKey);
+        buf.putLong(endTime);
+        buf.putLong(startTime);
+
+        return Bytes.wrap(buf.array());
+    }

Review Comment:
   Makes sense to me @bbejeck, change applied.



-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to