Class SpillSpaceTracker


  • @ThreadSafe
    public class SpillSpaceTracker
    extends Object
    • Constructor Detail

      • SpillSpaceTracker

        public SpillSpaceTracker​(io.airlift.units.DataSize maxSize)
    • Method Detail

      • reserve

        public com.google.common.util.concurrent.ListenableFuture<?> reserve​(long bytes)
        Reserves the given number of bytes to spill. If more than the maximum, throws an exception.
        Throws:
        ExceededSpillLimitException
      • free

        public void free​(long bytes)
      • getCurrentBytes

        public long getCurrentBytes()
        Returns the number of bytes currently on disk.
      • getMaxBytes

        public long getMaxBytes()