lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <>
Subject [jira] Created: (LUCENE-2778) Allow easy extension of RAMDirectory
Date Thu, 25 Nov 2010 13:57:14 GMT
Allow easy extension of RAMDirectory

                 Key: LUCENE-2778
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Store
            Reporter: Shai Erera
            Assignee: Shai Erera
            Priority: Minor
             Fix For: 3.1, 4.0

RAMDirectory uses RAMFiles to store the data. RAMFile offers a newBuffer() method for extensions
to override and allocate buffers differently, from e.g. a pool or something. However, RAMDirectory
always allocates RAMFile and doesn't allow allocating a RAMFile extension, which makes RAMFile.newBuffer()

I think we can simply introduce a newRAMFile() method on RAMDirectory and make the RAMFiles
map protected, and it will allow really extending RAMDir.

I will post a patch later.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message