Class SegmentedLongArray

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @NotThreadSafe
    public class SegmentedLongArray
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      SegmentedLongArray​(long initialCapacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long bytesCapacity()
      The amount of memory used to back the array of longs.
      void close()  
      void increaseCapacity()  
      long readLong​(long offset)  
      void shrink​(long newCapacity)  
      void writeLong​(long offset, long value)  
      • Methods inherited from class java.lang.Object

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

      • SegmentedLongArray

        public SegmentedLongArray​(long initialCapacity)
    • Method Detail

      • writeLong

        public void writeLong​(long offset,
                              long value)
      • readLong

        public long readLong​(long offset)
      • increaseCapacity

        public void increaseCapacity()
      • shrink

        public void shrink​(long newCapacity)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • bytesCapacity

        public long bytesCapacity()
        The amount of memory used to back the array of longs.