amogh-jahagirdar commented on code in PR #13997: URL: https://github.com/apache/iceberg/pull/13997#discussion_r2332052163
########## api/src/main/java/org/apache/iceberg/io/RangeReadable.java: ########## @@ -77,4 +80,37 @@ default void readFully(long position, byte[] buffer) throws IOException { default int readTail(byte[] buffer) throws IOException { return readTail(buffer, 0, buffer.length); } + + /** + * Is the {@link #readVectored(List, IntFunction)} method available? + * + * @param allocate the allocator to use for allocating ByteBuffers + * @return True if the operation is considered available for this allocator. + */ + default boolean readVectoredAvailable(IntFunction<ByteBuffer> allocate) { Review Comment: I agree with @danielcweeks here, an input stream which is an implementation of RangeReadable inherently should be able to be read through vectored IO -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org