JingsongLi commented on code in PR #6392:
URL: https://github.com/apache/paimon/pull/6392#discussion_r2425596312
##########
paimon-common/src/main/java/org/apache/paimon/fs/SeekableInputStream.java:
##########
@@ -64,4 +64,38 @@ public abstract class SeekableInputStream extends
InputStream {
* @exception IOException if an I/O error occurs.
*/
public abstract void close() throws IOException;
+
+ /**
+ * Wrap a normal {@link InputStream} to a {@link SeekableInputStream}. The
returned {@link
+ * SeekableInputStream} does not support seek operations.
+ */
+ public static SeekableInputStream wrap(InputStream inputStream) {
Review Comment:
You can remove `LimitedSeekableInputStream` class.
--
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]