lucene-dev mailing list archives

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

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


Mime
View raw message