lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Earwin Burrfoot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2339) Allow Directory.copy() to accept a collection of file names to be copied
Date Mon, 22 Mar 2010 16:29:27 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12848197#action_12848197
] 

Earwin Burrfoot commented on LUCENE-2339:
-----------------------------------------

bq. NIO's transferTo, right?
I didn't remember this at the point of writing, but yes, transferTo.
Google says that with certain restrictions on the size of the chunk transferred at once (eg.
one huge chunk for linux, 64mb-something chunks for windows), this works crossplatform.
NIO2@Java7 has an even more simple Path.copyTo() method, so happy 7 users can use this.

bq. For backups I wonder if we should make a copyTo/From that takes an IndexCommit
Ohmigosh, no! : }
You can get file list from IC and feed it into copy(). More power with less API surface.

I'm going to add two methods copyTo(target) and copyTo(target, filenames), rewrite copy(source,
target, close) to use these and deprecate it.
There's no point in keeping around slightly different versions of the same thing, and I believe
people can easily close their source dirs by themselves, what a stupid option.

> Allow Directory.copy() to accept a collection of file names to be copied
> ------------------------------------------------------------------------
>
>                 Key: LUCENE-2339
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2339
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Earwin Burrfoot
>            Assignee: Michael McCandless
>         Attachments: LUCENE-2339.patch
>
>
> Par example, I want to copy files pertaining to a certain commit, and not everything
there is in a Directory.

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message