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

PackedInts: convenience classes to write blocks of packed ints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • New

    Description

      It is often useful to divide a packed stream into fixed blocks which are all compressed independently:

      • if your sequence of ints is very large, you won't have to buffer everything into memory to compute the required number of bits per value,
      • the compression ratio will be better in case of rare extreme values.

      The only drawback compared to the original PackedInts API is that the stream cannot be directly used to deserialize a random-access PackedInts.Reader (but for sequential access, this is just fine).

      Attachments

        1. LUCENE-4643.patch
          13 kB
          Adrien Grand
        2. LUCENE-4643.patch
          12 kB
          Adrien Grand

        Issue Links

          Activity

            People

              jpountz Adrien Grand
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: