lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <>
Subject [jira] Commented: (LUCENE-2471) Supporting bulk copies in Directory
Date Thu, 20 May 2010 09:00:04 GMT


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:
>             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:
For additional commands, e-mail:

View raw message