Class MergeRateLimiter

  • public class MergeRateLimiter
    extends RateLimiter
    This is the RateLimiter that IndexWriter assigns to each running merge, to give MergeSchedulers ionice like control.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Method Detail

      • setMBPerSec

        public void setMBPerSec​(double mbPerSec)
        Description copied from class: RateLimiter
        Sets an updated MB per second rate limit.
        Specified by:
        setMBPerSec in class RateLimiter
      • getMBPerSec

        public double getMBPerSec()
        Description copied from class: RateLimiter
        The current MB per second rate limit.
        Specified by:
        getMBPerSec in class RateLimiter
      • getTotalBytesWritten

        public long getTotalBytesWritten()
        Returns total bytes written by this merge.
      • getTotalStoppedNS

        public long getTotalStoppedNS()
        Total NS merge was stopped.
      • getTotalPausedNS

        public long getTotalPausedNS()
        Total NS merge was paused to rate limit IO.