Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1219

support array/offset/ length setters for Field with binary data

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4
    • core/index
    • None
    • New, Patch Available

    Description

      currently Field/Fieldable interface supports only compact, zero based byte arrays. This forces end users to create and copy content of new objects before passing them to Lucene as such fields are often of variable size. Depending on use case, this can bring far from negligible performance improvement.

      this approach extends Fieldable interface with 3 new methods
      getOffset(); gettLenght(); and getBinaryValue() (this only returns reference to the array)

      Attachments

        1. LUCENE-1219.extended.patch
          17 kB
          Eks Dev
        2. LUCENE-1219.extended.patch
          18 kB
          Eks Dev
        3. LUCENE-1219.patch
          8 kB
          Eks Dev
        4. LUCENE-1219.patch
          8 kB
          Eks Dev
        5. LUCENE-1219.patch
          8 kB
          Eks Dev
        6. LUCENE-1219.patch
          8 kB
          Eks Dev
        7. LUCENE-1219.take2.patch
          15 kB
          Michael McCandless
        8. LUCENE-1219.take3.patch
          16 kB
          Eks Dev

        Issue Links

          Activity

            People

              mikemccand Michael McCandless
              eksdev Eks Dev
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: