Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
To prepare for HDFS-2834, it's useful to add an interface to FSDataInputStream (and others inside hdfs) that adds a read(ByteBuffer...) method as follows:
/** * Reads up to buf.remaining() bytes into buf. Callers should use * buf.limit(..) to control the size of the desired read. * * After the call, buf.position() should be unchanged, and therefore any data * can be immediately read from buf. * * @param buf * @return - the number of bytes available to read from buf * @throws IOException */ public int read(ByteBuffer buf) throws IOException;
Attachments
Attachments
Issue Links
- is depended upon by
-
HDFS-2834 ByteBuffer-based read API for DFSInputStream
- Closed