Re: ByteBuffer-based read API for pread

2013-12-31 Thread Colin McCabe
It's true that HDFS (and Hadoop generally) doesn't currently have a ByteBuffer-based pread API. There is a JIRA open for this issue, HDFS-3246. I do not know if implementing a ByteBuffer API for pread would be as big of a performance gain as implementing it for regular read. One issue is that wh

ByteBuffer-based read API for pread

2013-12-31 Thread lei liu
There is ByteBuffer read API for sequential read in CDH4.3.1, example:public synchronized int read(final ByteBuffer buf) throws IOException API. But there is not ByteBuffe read API for pread. Why don't support ByteBuffer read API for pread in CDH4.3.1? Thanks, LiuLei