Package org.apache.druid.segment
Class QueryableIndexTimeBoundaryInspector
- java.lang.Object
-
- org.apache.druid.segment.QueryableIndexTimeBoundaryInspector
-
- All Implemented Interfaces:
TimeBoundaryInspector
public class QueryableIndexTimeBoundaryInspector extends Object implements TimeBoundaryInspector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryableIndexTimeBoundaryInspectorcreate(QueryableIndex index)org.joda.time.DateTimegetMaxTime()Upper bound onColumnHolder.TIME_COLUMN_NAME.org.joda.time.DateTimegetMinTime()Lower bound onColumnHolder.TIME_COLUMN_NAME.booleanisMinMaxExact()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
public static QueryableIndexTimeBoundaryInspector create(QueryableIndex index)
-
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
-
-