lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] Updated: (LUCENE-2154) Need a clean way for Dir/MultiReader to "merge" the AttributeSources of the sub-readers
Date Thu, 11 Feb 2010 11:24:28 GMT


Uwe Schindler updated LUCENE-2154:

    Attachment: LUCENE-2154.patch

I had some more fun. Made ProxyAttributeSource non-final and added class name policy to also
contain the corresponding interface (to make stack traces on errors nicer).

Here the example output:
    [junit] DEBUG: Created class org.apache.lucene.util.ProxyAttributeSource$ProxyAttributeImpl$$TermAttribute$$EnhancerByCGLIB$$6100bdf9
for attribute org.apache.lucene.analysis.tokenattributes.TermAttribute
    [junit] DEBUG: Created class org.apache.lucene.util.ProxyAttributeSource$ProxyAttributeImpl$$TypeAttribute$$EnhancerByCGLIB$$6f89c3ff
for attribute org.apache.lucene.analysis.tokenattributes.TypeAttribute
    [junit] DEBUG: Created class org.apache.lucene.util.ProxyAttributeSource$ProxyAttributeImpl$$FlagsAttribute$$EnhancerByCGLIB$$4668733c
for attribute org.apache.lucene.analysis.tokenattributes.FlagsAttribute
    [junit] Time taken using org.apache.lucene.analysis.tokenattributes.TermAttributeImpl:
    [junit]   1476.090658 ms for 10000000 iterations
    [junit] Time taken using org.apache.lucene.util.ProxyAttributeSource$ProxyAttributeImpl$$TermAttribute$$EnhancerByCGLIB$$6100bdf
    [junit]   1881.295734 ms for 10000000 iterations

> Need a clean way for Dir/MultiReader to "merge" the AttributeSources of the sub-readers
> ---------------------------------------------------------------------------------------
>                 Key: LUCENE-2154
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: Flex Branch
>            Reporter: Michael McCandless
>             Fix For: Flex Branch
>         Attachments: LUCENE-2154.patch, LUCENE-2154.patch
> The flex API allows extensibility at the Fields/Terms/Docs/PositionsEnum levels, for
a codec to set custom attrs.
> But, it's currently broken for Dir/MultiReader, which must somehow share attrs across
all the sub-readers.  Somehow we must make a single attr source, and tell each sub-reader's
enum to use that instead of creating its own.  Hopefully Uwe can work some magic here :)

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