Description
Currently BufferedIndexInput works on a byte[] but its main implementation, in NIOFSDirectory, has to implement a hack to maintain a ByteBuffer view of it that it can use in calls to the FileChannel API. Maybe we should instead make BufferedIndexInput work directly on a ByteBuffer? This would also help reuse the existing ByteBuffer#get(|Short|Int|long) methods instead of duplicating them from DataInput.
Attachments
Issue Links
- links to