Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 84123 invoked from network); 25 Nov 2010 19:47:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Nov 2010 19:47:35 -0000 Received: (qmail 54701 invoked by uid 500); 25 Nov 2010 19:47:33 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 54651 invoked by uid 500); 25 Nov 2010 19:47:33 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 54644 invoked by uid 99); 25 Nov 2010 19:47:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 19:47:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 19:47:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAPJlDB1004870 for ; Thu, 25 Nov 2010 19:47:13 GMT Message-ID: <7885248.316501290714433220.JavaMail.jira@thor> Date: Thu, 25 Nov 2010 14:47:13 -0500 (EST) From: "Shai Erera (JIRA)" To: dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-2778) Allow easy extension of RAMDirectory In-Reply-To: <31271405.312181290693434436.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shai Erera resolved LUCENE-2778. -------------------------------- Resolution: Fixed Committed revision 1039151 (3x). Committed revision 1039156 (trunk). > Allow easy extension of RAMDirectory > ------------------------------------ > > Key: LUCENE-2778 > URL: https://issues.apache.org/jira/browse/LUCENE-2778 > Project: Lucene - Java > Issue Type: Improvement > Components: Store > Reporter: Shai Erera > Assignee: Shai Erera > Priority: Minor > Fix For: 3.1, 4.0 > > Attachments: LUCENE-2778.patch > > > 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() unusable. > 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org