[
https://issues.apache.org/jira/browse/LUCENE-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869504#action_12869504
]
Earwin Burrfoot commented on LUCENE-2471:
-----------------------------------------
Bad link? The issue is closed already and no mentions of Directory in the
patches.
Immediate consumer, just as I said - is all bulk-merging code. I.e. - instead
of loading norms to a byte array and then writing them out, you do, roughly:
{code}
IndexInput normFile = ...;
IndexOutput newNormFile = ...;
newNormFile.write(normFile, offset, length);
{code}
I looked at FSDir and refreshed my memory. copyTo is implemented with channels
and transferTo, I think new method will look quite similar.
> 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]