Class PackedInts.Reader

    • Constructor Summary

      Constructors 
      Constructor Description
      Reader()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract 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.
      abstract int size()  
      • Methods inherited from class java.lang.Object

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

      • Reader

        public Reader()
    • Method Detail

      • get

        public abstract long get​(int index)
        Get the long at the given index. Behavior is undefined for out-of-range indices.
      • get

        public 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.
      • size

        public abstract int size()
        Returns:
        the number of values.