Github user arunmahadevan commented on a diff in the pull request:

    https://github.com/apache/storm/pull/894#discussion_r45436425
  
    --- Diff: storm-core/src/jvm/backtype/storm/spout/RawScheme.java ---
    @@ -18,11 +18,13 @@
     package backtype.storm.spout;
     
     import backtype.storm.tuple.Fields;
    +
    +import java.nio.ByteBuffer;
     import java.util.List;
     import static backtype.storm.utils.Utils.tuple;
     
     public class RawScheme implements Scheme {
    -    public List<Object> deserialize(byte[] ser) {
    +    public List<Object> deserialize(ByteBuffer ser) {
    --- End diff --
    
    @harshach Actually I was referring to the receiver (the bolts) that might 
be currently doing something like `byte[] bytes = 
inputTuple.getBinaryByField("bytes");` to get the data emitted from kafka 
spout. It appears that the `deserialize` method returns a tuple that wraps the 
input ByteBuffer which gets emitted.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to