Adrien Grand created LUCENE-9271:
------------------------------------

             Summary: Make BufferedIndexInput work on a ByteBuffer
                 Key: LUCENE-9271
                 URL: https://issues.apache.org/jira/browse/LUCENE-9271
             Project: Lucene - Core
          Issue Type: Task
            Reporter: Adrien Grand


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}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to