Package org.apache.druid.query.search
Class SearchQuery
java.lang.Object
org.apache.druid.query.BaseQuery<Result<SearchResultValue>>
org.apache.druid.query.search.SearchQuery
- All Implemented Interfaces:
Query<Result<SearchResultValue>>
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionSearchQuery(DataSource dataSource, DimFilter dimFilter, Granularity granularity, int limit, QuerySegmentSpec querySegmentSpec, List<DimensionSpec> dimensions, VirtualColumns virtualColumns, SearchQuerySpec querySpec, SearchSortSpec sortSpec, Map<String, Object> context) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetLimit()getQuery()getSort()getType()booleaninthashCode()toString()withDataSource(DataSource dataSource) withLimit(int newLimit) 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, mayCollapseQueryDataSource, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority
-
Constructor Details
-
SearchQuery
public SearchQuery(DataSource dataSource, DimFilter dimFilter, Granularity granularity, int limit, QuerySegmentSpec querySegmentSpec, List<DimensionSpec> dimensions, VirtualColumns virtualColumns, SearchQuerySpec querySpec, SearchSortSpec sortSpec, Map<String, Object> context)
-
-
Method Details
-
hasFilters
public boolean hasFilters() -
getFilter
-
getType
-
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
-
withOverriddenContext
-
getDimensionsFilter
-
getLimit
public int getLimit() -
getDimensions
-
getVirtualColumns
-
getQuery
-
getSort
-
withLimit
-
toString
-
equals
- Overrides:
equalsin classBaseQuery<Result<SearchResultValue>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseQuery<Result<SearchResultValue>>
-