Add an override method read for class HdfsInputStream
Cherry-pick of Trino
Add an override method read(byte[] b, int off, int len) for class
HdfsInputStream to avoid poor performance when load iceberg metadata.
This helps avoid poor performance, since previously the invocation
was delegated to `read()`.
@@ -88,6 +88,13 @@ public class HdfsInputFile
return delegate.read();
}
+ @Override
+ public int read(byte[] b, int off, int len)
+ throws IOException
+ {
+ return delegate.read(b, off, len);
+ }
+
@Override
public long getPos() throws IOException
{
