Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80D43E3A1 for ; Sat, 2 Feb 2013 13:58:15 +0000 (UTC) Received: (qmail 51902 invoked by uid 500); 2 Feb 2013 13:58:14 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 51715 invoked by uid 500); 2 Feb 2013 13:58:14 -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 51691 invoked by uid 99); 2 Feb 2013 13:58:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 13:58:13 +0000 Date: Sat, 2 Feb 2013 13:58:13 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-4746) Create a move method in Directory. 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-4746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569552#comment-13569552 ] Michael McCandless commented on LUCENE-4746: -------------------------------------------- I'm not sure we should do this: I think Directory should have only he methods necessary for Lucene, and we should minimize those methods as much as possible. We used to have 'rename' and we removed it because it was problematic in some cases. > Create a move method in Directory. > ---------------------------------- > > Key: LUCENE-4746 > URL: https://issues.apache.org/jira/browse/LUCENE-4746 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Mark Miller > Assignee: Mark Miller > Fix For: 4.2, 5.0 > > > I'd like to make a move method for directory. > We already have a move for Solr in DirectoryFactory, but it seems it belongs at the directory level really. > The default impl can do a copy and delete, but most implementations will be able to optimize to a rename. > Besides the move we do for Solr (to move a replicated index into place), it would also be useful for another feature I'd like to add - the ability to merge an index with moves rather than copies. In some cases, you don't need/want to copy all the files and could just rename/move them. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org