Package org.apache.druid.segment
Class WrappedTimeBoundaryInspector
java.lang.Object
org.apache.druid.segment.WrappedTimeBoundaryInspector
- All Implemented Interfaces:
TimeBoundaryInspector
Wrapper for
TimeBoundaryInspector used by Segment implementations that may filter out rows
from an underlying segment, but do not modify ColumnHolder.TIME_COLUMN_NAME.-
Method Summary
Modifier and TypeMethodDescriptionstatic WrappedTimeBoundaryInspectorcreate(TimeBoundaryInspector delegate) org.joda.time.DateTimeUpper bound onColumnHolder.TIME_COLUMN_NAME.org.joda.time.DateTimeLower bound onColumnHolder.TIME_COLUMN_NAME.booleanWhether 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, waitMethods inherited from interface org.apache.druid.segment.TimeBoundaryInspector
getMinMaxInterval
-
Method Details
-
create
@Nullable public static WrappedTimeBoundaryInspector create(@Nullable TimeBoundaryInspector delegate) -
getMinTime
public org.joda.time.DateTime getMinTime()Description copied from interface:TimeBoundaryInspectorLower bound onColumnHolder.TIME_COLUMN_NAME. Matches the lowest timestamp in the dataset ifTimeBoundaryInspector.isMinMaxExact().- Specified by:
getMinTimein interfaceTimeBoundaryInspector
-
getMaxTime
public org.joda.time.DateTime getMaxTime()Description copied from interface:TimeBoundaryInspectorUpper bound onColumnHolder.TIME_COLUMN_NAME. Strict ifTimeBoundaryInspector.isMinMaxExact(). Matches the highest timestamp in the dataset ifTimeBoundaryInspector.isMinMaxExact().- Specified by:
getMaxTimein interfaceTimeBoundaryInspector
-
isMinMaxExact
public boolean isMinMaxExact()Description copied from interface:TimeBoundaryInspectorWhether 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:
isMinMaxExactin interfaceTimeBoundaryInspector
-