[ https://issues.apache.org/jira/browse/LUCENE-9271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17077284#comment-17077284 ]
ASF subversion and git services commented on LUCENE-9271: --------------------------------------------------------- Commit 3363e1aa4897a5eca9f390a9f22cab5686305ef7 in lucene-solr's branch refs/heads/master from Adrien Grand [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=3363e1a ] LUCENE-9271: Fix bad assertion. > 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 > Priority: Minor > Time Spent: 1h 40m > Remaining Estimate: 0h > > 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: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org