Class SegmentReference

java.lang.Object
org.apache.druid.segment.SegmentReference
All Implemented Interfaces:
Closeable, AutoCloseable

public class SegmentReference extends Object implements Closeable
Wrapper for a SegmentDescriptor and Optional<Segment>, the latter being created by a SegmentMapFunction being applied to a ReferenceCountedSegmentProvider. Closing this object closes both the segmentReference and any closeables attached from the process of creating this object, such as from AcquireSegmentAction