johnjcasey commented on code in PR #28596:
URL: https://github.com/apache/beam/pull/28596#discussion_r1377895355
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/coders/Coder.java:
##########
@@ -135,6 +138,9 @@ public void encode(T value, OutputStream outStream, Context
context)
/**
* Decodes a value of type {@code T} from the given input stream in the
given context. Returns the
* decoded value.
+ * Multiple elements can be encoded next to each other on the input stream,
+ * each coder should encode information to know how many bytes to read when
decoding.
+ * A common approach is to prefix the encoding with the elemen's encoded
length.
Review Comment:
typo is duplicated here
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]