Package org.apache.druid.segment
Class ReferenceCountedSegmentProvider.LeafReference
java.lang.Object
org.apache.druid.segment.ReferenceCountedSegmentProvider.LeafReference
- All Implemented Interfaces:
Closeable,AutoCloseable,Segment
- Direct Known Subclasses:
ReferenceCountedSegmentProvider.CloseableWrappedReference,ReferenceCountedSegmentProvider.ReferenceClosingSegment,ReferenceCountedSegmentProvider.UnmanagedReference
- Enclosing class:
- ReferenceCountedSegmentProvider
public abstract static class ReferenceCountedSegmentProvider.LeafReference
extends Object
implements Segment
Base type to mark
Segment returned by ReferenceCountedObjectProvider<Segment> as 'leaf' segments,
to distinguish from other transformations which can be done on top of this segment, such as by
SegmentMapFunction-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.IntervalDeveloper friendly string suitable to use in internal error messages and provide some additional information about what kind of segment was involved in a problemgetId()Returns theSegmentIdof this segment, if it is backed by a real table, otherwise returns null.booleanvoidvalidateOrElseThrow(PolicyEnforcer policyEnforcer) Validates if the segment complies with the policy restrictions on tables.
-
Field Details
-
baseSegment
-
-
Constructor Details
-
LeafReference
-
-
Method Details
-
getId
Description copied from interface:SegmentReturns theSegmentIdof this segment, if it is backed by a real table, otherwise returns null. -
getDataInterval
public org.joda.time.Interval getDataInterval()- Specified by:
getDataIntervalin interfaceSegment
-
isTombstone
public boolean isTombstone()- Specified by:
isTombstonein interfaceSegment
-
getDebugString
Description copied from interface:SegmentDeveloper friendly string suitable to use in internal error messages and provide some additional information about what kind of segment was involved in a problem- Specified by:
getDebugStringin interfaceSegment
-
validateOrElseThrow
Description copied from interface:SegmentValidates if the segment complies with the policy restrictions on tables.This should be called right before the segment is about to be processed by the query stack, and after
ExecutionVertex.createSegmentMapFunction(PolicyEnforcer).- Specified by:
validateOrElseThrowin interfaceSegment
-