Package org.apache.druid.segment
Class WrappedSegment
java.lang.Object
org.apache.druid.segment.WrappedSegment
- All Implemented Interfaces:
Closeable,AutoCloseable,Segment
- Direct Known Subclasses:
FilteredSegment,UnnestSegment
Simple
Segment implementation for a segment that wraps a base segment such as
UnnestSegment or FilteredSegment-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.joda.time.IntervalgetId()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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.Segment
as, getDebugString
-
Field Details
-
delegate
-
-
Constructor Details
-
WrappedSegment
-
-
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
-
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
-
isTombstone
public boolean isTombstone()- Specified by:
isTombstonein interfaceSegment
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-