Class TimeBoundaryQuery
java.lang.Object
org.apache.druid.query.BaseQuery<Result<TimeBoundaryResultValue>>
org.apache.druid.query.timeboundary.TimeBoundaryQuery
- All Implemented Interfaces:
Query<Result<TimeBoundaryResultValue>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.druid.query.BaseQuery
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDFields inherited from interface org.apache.druid.query.Query
DATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN, UNION_QUERY, WINDOW_OPERATOR -
Constructor Summary
ConstructorsConstructorDescriptionTimeBoundaryQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, String bound, DimFilter dimFilter, Map<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionbuildResult(org.joda.time.DateTime timestamp, org.joda.time.DateTime min, org.joda.time.DateTime max) booleangetBound()byte[]getType()booleaninthashCode()mergeResults(List<Result<TimeBoundaryResultValue>> results) toString()withDataSource(DataSource dataSource) withOverriddenContext(Map<String, Object> contextOverrides) Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec.Methods inherited from class org.apache.druid.query.BaseQuery
calculateDuration, checkInterrupted, computeOverriddenContext, computeOverridenContext, context, getContext, getDataSource, getDuration, getGranularity, getId, getIntervals, getQuerySegmentSpec, getResultOrdering, getRunner, getSubQueryId, getTimezone, withId, withSqlQueryId, withSubQueryIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.Query
getContextBoolean, getContextHumanReadableBytes, getContextValue, getMostSpecificId, getRequiredColumns, getResultRowSignature, getResultRowSignature, getSingleInterval, getSqlQueryId, getVirtualColumns, mayCollapseQueryDataSource, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority
-
Field Details
-
MAX_TIME
- See Also:
-
MIN_TIME
- See Also:
-
MAX_TIME_ARRAY_OUTPUT_NAME
- See Also:
-
MIN_TIME_ARRAY_OUTPUT_NAME
- See Also:
-
-
Constructor Details
-
TimeBoundaryQuery
public TimeBoundaryQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, String bound, DimFilter dimFilter, Map<String, Object> context)
-
-
Method Details
-
hasFilters
public boolean hasFilters() -
getFilter
-
getType
-
getBound
-
withOverriddenContext
-
withQuerySegmentSpec
Description copied from interface:QueryReturns a new query, identical to this one, but with a different associatedQuerySegmentSpec.This often changes the behavior of
Query.getRunner(QuerySegmentWalker), since most queries inherit that method fromBaseQuery, which implements it by callingQuerySegmentSpec.lookup(org.apache.druid.query.Query<T>, org.apache.druid.query.QuerySegmentWalker). -
withDataSource
-
getCacheKey
public byte[] getCacheKey() -
buildResult
public Iterable<Result<TimeBoundaryResultValue>> buildResult(org.joda.time.DateTime timestamp, org.joda.time.DateTime min, org.joda.time.DateTime max) -
mergeResults
public Iterable<Result<TimeBoundaryResultValue>> mergeResults(List<Result<TimeBoundaryResultValue>> results) -
toString
-
equals
- Overrides:
equalsin classBaseQuery<Result<TimeBoundaryResultValue>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseQuery<Result<TimeBoundaryResultValue>>
-