Class XPackedInts.NullReader

java.lang.Object
org.apache.lucene.util.packed.PackedInts.Reader
org.apache.lucene.util.packed.XPackedInts.NullReader
All Implemented Interfaces:
org.apache.lucene.util.Accountable
Enclosing class:
XPackedInts

public static final class XPackedInts.NullReader extends org.apache.lucene.util.packed.PackedInts.Reader
A PackedInts.Reader which has all its values equal to 0 (bitsPerValue = 0).
  • Field Summary

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    NullReader(int valueCount)
    Sole constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    get(int index)
     
    int
    get(int index, long[] arr, int off, int len)
     
    long
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources
  • Constructor Details

    • NullReader

      public NullReader(int valueCount)
      Sole constructor.
  • Method Details

    • get

      public long get(int index)
      Specified by:
      get in class org.apache.lucene.util.packed.PackedInts.Reader
    • get

      public int get(int index, long[] arr, int off, int len)
      Overrides:
      get in class org.apache.lucene.util.packed.PackedInts.Reader
    • size

      public int size()
      Specified by:
      size in class org.apache.lucene.util.packed.PackedInts.Reader
    • ramBytesUsed

      public long ramBytesUsed()