Class PackedInts.NullReader

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long get​(int index)
      Get the long at the given index.
      int get​(int index, long[] arr, int off, int len)
      Bulk get: read at least one and at most len longs starting from index into arr[off:off+len] and return the actual number of values that have been read.
      long ramBytesUsed()
      Return the memory usage of this object in bytes.
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • valueCount

        private final int valueCount
    • Constructor Detail

      • NullReader

        public NullReader​(int valueCount)
        Sole constructor.
    • Method Detail

      • get

        public 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
      • get

        public int get​(int index,
                       long[] arr,
                       int off,
                       int len)
        Description copied from class: PackedInts.Reader
        Bulk get: read at least one and at most len longs starting from index into arr[off:off+len] and return the actual number of values that have been read.
        Overrides:
        get in class PackedInts.Reader
      • size

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

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.