Class PackedInts.ReaderImpl

java.lang.Object
org.apache.lucene.util.packed.PackedInts.Reader
org.apache.lucene.util.packed.PackedInts.ReaderImpl
All Implemented Interfaces:
Accountable
Direct Known Subclasses:
DirectPacked64SingleBlockReader, DirectPackedReader
Enclosing class:
PackedInts

abstract static class PackedInts.ReaderImpl extends PackedInts.Reader
A simple base for Readers that keeps track of valueCount and bitsPerValue.
  • Field Details

    • valueCount

      protected final int valueCount
  • Constructor Details

    • ReaderImpl

      protected ReaderImpl(int valueCount)
  • Method Details

    • get

      public abstract long get(int index)
      Description copied from class: PackedInts.Reader
      Get the long at the given index. Behavior is undefined for out-of-range indices.
      Specified by:
      get in class PackedInts.Reader
    • size

      public final int size()
      Specified by:
      size in class PackedInts.Reader
      Returns:
      the number of values.