Package org.apache.druid.segment
Class WrappedTimeBoundaryInspector
- java.lang.Object
-
- org.apache.druid.segment.WrappedTimeBoundaryInspector
-
- All Implemented Interfaces:
TimeBoundaryInspector
public class WrappedTimeBoundaryInspector extends Object implements TimeBoundaryInspector
Wrapper forTimeBoundaryInspector
used bySegment
implementations that may filter out rows from an underlying segment, but do not modifyColumnHolder.TIME_COLUMN_NAME
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WrappedTimeBoundaryInspector
create(TimeBoundaryInspector delegate)
org.joda.time.DateTime
getMaxTime()
Upper bound onColumnHolder.TIME_COLUMN_NAME
.org.joda.time.DateTime
getMinTime()
Lower bound onColumnHolder.TIME_COLUMN_NAME
.boolean
isMinMaxExact()
Whether the lower and upper bounds returned byTimeBoundaryInspector.getMinTime()
andTimeBoundaryInspector.getMaxTime()
are actually found in the dataset.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.TimeBoundaryInspector
getMinMaxInterval
-
-
-
-
Method Detail
-
create
@Nullable public static WrappedTimeBoundaryInspector create(@Nullable TimeBoundaryInspector delegate)
-
getMinTime
public org.joda.time.DateTime getMinTime()
Description copied from interface:TimeBoundaryInspector
Lower bound onColumnHolder.TIME_COLUMN_NAME
. Matches the lowest timestamp in the dataset ifTimeBoundaryInspector.isMinMaxExact()
.- Specified by:
getMinTime
in interfaceTimeBoundaryInspector
-
getMaxTime
public org.joda.time.DateTime getMaxTime()
Description copied from interface:TimeBoundaryInspector
Upper bound onColumnHolder.TIME_COLUMN_NAME
. Strict ifTimeBoundaryInspector.isMinMaxExact()
. Matches the highest timestamp in the dataset ifTimeBoundaryInspector.isMinMaxExact()
.- Specified by:
getMaxTime
in interfaceTimeBoundaryInspector
-
isMinMaxExact
public boolean isMinMaxExact()
Description copied from interface:TimeBoundaryInspector
Whether the lower and upper bounds returned byTimeBoundaryInspector.getMinTime()
andTimeBoundaryInspector.getMaxTime()
are actually found in the dataset. If true, the bounds are strict and can be used substitutes for aggregationsMIN(__time)
andMAX(__time)
.- Specified by:
isMinMaxExact
in interfaceTimeBoundaryInspector
-
-