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

Shai Erera commented on LUCENE-2471:
------------------------------------

The default impl still exist, only in the form of a single file copy instead of 
an entire directory. There were a couple of reasons to replace them:
# They didn't take a target-name API. when I'm copying the segments in 
addIndexes over on LUCENE-2455, I need to rename then in the process (to 
reflect their new segment name), and the API did not exist.
# The API was very dangerous as it overwrote thr target files, no questions 
asked. So you could very easily overwrite one of the segments.

You can still accomplish that by iterating on the dir yourself and copy the 
files that you want, only you can do that selectively, leas risky and rename 
them in the process.

> Supporting bulk copies in Directory
> -----------------------------------
>
>                 Key: LUCENE-2471
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2471
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Earwin Burrfoot
>
> A method can be added to IndexOutput that accepts IndexInput, and writes 
> bytes using it as a source.
> This should be used for bulk-merge cases (offhand - norms, docstores?). Some 
> Directories can then override default impl and skip intermediate buffers 
> (NIO, MMap, RAM?).

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to