Class AcquireSegmentResult

java.lang.Object
org.apache.druid.segment.loading.AcquireSegmentResult

public class AcquireSegmentResult extends Object
Wraps a ReferenceCountedObjectProvider<Segment> with additional measurements about segment loading, if it was required
  • Constructor Details

  • Method Details

    • empty

      public static AcquireSegmentResult empty()
    • cached

    • getReferenceProvider

      public ReferenceCountedObjectProvider<Segment> getReferenceProvider()
      Segment reference provider for loaded segment
    • getLoadSizeBytes

      public long getLoadSizeBytes()
      Amount of data loaded into the cache, or 0 if it was already available in the cache
    • getWaitTimeNanos

      public long getWaitTimeNanos()
      Amount of time spent waiting before actually loading the segment (e.g. if loads are done on a shared thread pool)
    • getLoadTimeNanos

      public long getLoadTimeNanos()
      Amount of time spent loading a segment, or 0 if the segment was already available in the cache