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

Replace Payload with BytesRef

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-ALPHA, 6.0
    • 4.0-ALPHA, 6.0
    • core/index
    • None
    • New

    Description

      The Payload class offers a very similar functionality to BytesRef. The code internally uses BytesRef-s to represent payloads, and on indexing and on retrieval this data is repackaged from/to Payload.

      This seems wasteful. I propose to remove the Payload class and use BytesRef instead, thus avoid this re-wrapping and reducing the API footprint.

      Attachments

        1. LUCENE-4122.patch
          69 kB
          Andrzej Bialecki

        Activity

          People

            ab Andrzej Bialecki
            ab Andrzej Bialecki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: