Package org.apache.druid.query.select
Class SelectQuery
java.lang.Object
org.apache.druid.query.select.SelectQuery
Deprecated.
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the context as an (immutable) map.Deprecated.org.joda.time.DurationDeprecated.Deprecated.Deprecated.getId()Deprecated.List<org.joda.time.Interval>Deprecated.com.google.common.collect.Ordering<Object>Deprecated.Comparator that represents the order in which results are generated from theQueryRunnerFactory.createRunner(Segment)andQueryRunnerFactory.mergeRunners(QueryProcessingPool, Iterable)calls.getRunner(QuerySegmentWalker walker) Deprecated.Deprecated.Returns the subQueryId of this query.org.joda.time.DateTimeZoneDeprecated.getType()Deprecated.booleanDeprecated.withDataSource(DataSource dataSource) Deprecated.Deprecated.withOverriddenContext(Map<String, Object> contextOverride) Deprecated.Deprecated.Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec.withSubQueryId(String subQueryId) Deprecated.Returns a copy of this query with a new subQueryId (seeQuery.getSubQueryId().Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.Query
context, getContextBoolean, getContextHumanReadableBytes, getContextValue, getMostSpecificId, getRequiredColumns, getResultRowSignature, getResultRowSignature, getSingleInterval, getSqlQueryId, getVirtualColumns, mayCollapseQueryDataSource, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority, withSqlQueryId
-
Constructor Details
-
SelectQuery
public SelectQuery()Deprecated.
-
-
Method Details
-
getDataSource
Deprecated.- Specified by:
getDataSourcein interfaceQuery<Object>
-
hasFilters
public boolean hasFilters()Deprecated.- Specified by:
hasFiltersin interfaceQuery<Object>
-
getFilter
Deprecated. -
getType
Deprecated. -
getRunner
Deprecated. -
getIntervals
Deprecated.- Specified by:
getIntervalsin interfaceQuery<Object>
-
getDuration
public org.joda.time.Duration getDuration()Deprecated.- Specified by:
getDurationin interfaceQuery<Object>
-
getGranularity
Deprecated.- Specified by:
getGranularityin interfaceQuery<Object>
-
getTimezone
public org.joda.time.DateTimeZone getTimezone()Deprecated.- Specified by:
getTimezonein interfaceQuery<Object>
-
getContext
Deprecated.Description copied from interface:QueryReturns the context as an (immutable) map.- Specified by:
getContextin interfaceQuery<Object>
-
getResultOrdering
Deprecated.Description copied from interface:QueryComparator that represents the order in which results are generated from theQueryRunnerFactory.createRunner(Segment)andQueryRunnerFactory.mergeRunners(QueryProcessingPool, Iterable)calls. This is used to combine streams of results from different sources; for example, it's used by historicals to combine streams from different segments, and it's used by the broker to combine streams from different historicals.Important note: sometimes, this ordering is used in a type-unsafe way to order @{code Result
} objects. Because of this, implementations should fall back to Ordering.natural()when they are given an object that is not of type T.- Specified by:
getResultOrderingin interfaceQuery<Object>
-
withOverriddenContext
Deprecated.- Specified by:
withOverriddenContextin interfaceQuery<Object>
-
withQuerySegmentSpec
Deprecated.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).- Specified by:
withQuerySegmentSpecin interfaceQuery<Object>
-
withId
Deprecated. -
getId
Deprecated. -
withSubQueryId
Deprecated.Description copied from interface:QueryReturns a copy of this query with a new subQueryId (seeQuery.getSubQueryId().- Specified by:
withSubQueryIdin interfaceQuery<Object>
-
getSubQueryId
Deprecated.Description copied from interface:QueryReturns the subQueryId of this query. This is set by ClientQuerySegmentWalker (the entry point for the Broker's query stack) on any subqueries that it issues. It is null for the main query.- Specified by:
getSubQueryIdin interfaceQuery<Object>
-
withDataSource
Deprecated.- Specified by:
withDataSourcein interfaceQuery<Object>
-