Class IndexWriter.LongIndexCollector

  • Enclosing class:
    IndexWriter

    public static class IndexWriter.LongIndexCollector
    extends Object
    A collector for a int to long mapping. Compressed with a maximum range of bits.
    • Constructor Detail

      • LongIndexCollector

        public LongIndexCollector​(int size,
                                  int mostSignificantBit)
        Create the collector.
        Parameters:
        size - the number of elements
        mostSignificantBit - the MSB of the long values
    • Method Detail

      • set

        public void set​(int index,
                        long value)
      • get

        public long get​(int index)
      • getNext

        public long[] getNext​(int index,
                              int length)
      • reverse

        public int reverse​(long value)
      • unload

        public void unload()
      • size

        public int size()