Uses of Interface
org.apache.druid.java.util.common.guava.Sequence
Packages that use Sequence
Package
Description
-
Uses of Sequence in org.apache.druid.common.guava
Classes in org.apache.druid.common.guava that implement SequenceMethods in org.apache.druid.common.guava with parameters of type SequenceModifier and TypeMethodDescriptionstatic <T> CombiningSequence<T> CombiningSequence.create(Sequence<T> baseSequence, Comparator<T> ordering, BinaryOperator<T> mergeFn) -
Uses of Sequence in org.apache.druid.frame.channel
Classes in org.apache.druid.frame.channel that implement SequenceModifier and TypeClassDescriptionclass -
Uses of Sequence in org.apache.druid.frame.processor.manager
Methods in org.apache.druid.frame.processor.manager with parameters of type SequenceModifier and TypeMethodDescriptionstatic <T> ProcessorManager<T, Long> ProcessorManagers.of(Sequence<? extends FrameProcessor<T>> processors) Manager with processors derived from aSequence. -
Uses of Sequence in org.apache.druid.frame.segment
Methods in org.apache.druid.frame.segment that return SequenceModifier and TypeMethodDescriptionFrameCursorUtils.cursorToFramesSequence(Cursor cursor, FrameWriterFactory frameWriterFactory) -
Uses of Sequence in org.apache.druid.java.util.common.guava
Classes in org.apache.druid.java.util.common.guava that implement SequenceModifier and TypeClassDescriptionclassBaseSequence<T,IterType extends Iterator<T>> classclassWraps an underlying sequence and allows us to force it to explode at various points.classclassLazySequence<T>classMappedSequence<T,Out> classUsed to perform an n-way merge on n ordered sequencesclassArtisanal, locally-sourced, hand-crafted, gluten and GMO free, bespoke, free-range, organic, small-batch parallel merge combining sequence.classSimple Sequence based on an Iterable, created usingSequences.simple(java.lang.Iterable<T>).classA Sequence that skips the first few elements.classTopNSequence<T>Simultaneously sorts and limits its input.classA Sequence that is based entirely on the Yielder implementation.Methods in org.apache.druid.java.util.common.guava that return SequenceModifier and TypeMethodDescriptionstatic <T> Sequence<T> static <T> Sequence<T> static <T> Sequence<T> static <T> Sequence<T> Sequences.empty()static <T> Sequence<T> default <R> Sequence<R> default <R> Sequence<R> Sequence.flatMerge(Function<? super T, ? extends Sequence<? extends R>> mapper, com.google.common.collect.Ordering<? super R> ordering) Sequence.limit(long limit) default <U> Sequence<U> static <From,To> Sequence <To> Sequences.map(Sequence<From> sequence, com.google.common.base.Function<? super From, ? extends To> fn) static <T> Sequence<T> Sequences.of(T... values) static <T> Sequence<T> Sequence.skip(long skip) static <T> Sequence<T> Sequences.sort(Sequence<T> sequence, Comparator<T> comparator) Returns a sorted copy of the provided sequence.Sequence.withBaggage(Closeable baggage) static <T> Sequence<T> Sequences.withBaggage(Sequence<T> seq, Closeable baggage) Sequence.withEffect(Runnable effect, Executor effectExecutor) static <T> Sequence<T> Sequences.withEffect(Sequence<T> seq, Runnable effect, Executor exec) static <T> Sequence<T> Sequences.wrap(Sequence<T> seq, SequenceWrapper wrapper) Allows to execute something before, after or around the processing of the given sequence.Methods in org.apache.druid.java.util.common.guava with parameters of type SequenceModifier and TypeMethodDescriptionstatic <T> Sequence<T> static <T> Sequence<T> static <T> Yielder<T> static <T> Sequence<T> static <From,To> Sequence <To> Sequences.map(Sequence<From> sequence, com.google.common.base.Function<? super From, ? extends To> fn) static <T> Sequence<T> Sequences.sort(Sequence<T> sequence, Comparator<T> comparator) Returns a sorted copy of the provided sequence.static <T> Sequence<T> Sequences.withBaggage(Sequence<T> seq, Closeable baggage) static <T> Sequence<T> Sequences.withEffect(Sequence<T> seq, Runnable effect, Executor exec) static <T> Sequence<T> Sequences.wrap(Sequence<T> seq, SequenceWrapper wrapper) Allows to execute something before, after or around the processing of the given sequence.Method parameters in org.apache.druid.java.util.common.guava with type arguments of type SequenceModifier and TypeMethodDescriptionstatic <T> Sequence<T> static <T> Sequence<T> default <R> Sequence<R> default <R> Sequence<R> Sequence.flatMerge(Function<? super T, ? extends Sequence<? extends R>> mapper, com.google.common.collect.Ordering<? super R> ordering) <OutType> Yielder<OutType> ConcatSequence.makeYielder(Yielder<Sequence<T>> yielderYielder, OutType initValue, YieldingAccumulator<OutType, T> accumulator) Constructors in org.apache.druid.java.util.common.guava with parameters of type SequenceModifierConstructorDescriptionConcatSequence(Sequence<? extends Sequence<? extends T>> baseSequences) ExplodingSequence(Sequence<T> baseSequence, boolean getThrowsException, boolean closeThrowsException) FilteredSequence(Sequence<T> baseSequence, com.google.common.base.Predicate<? super T> pred) MergeSequence(com.google.common.collect.Ordering<? super T> ordering, Sequence<? extends Sequence<? extends T>> baseSequences) SkippingSequence(Sequence<T> baseSequence, long skip) TopNSequence(Sequence<T> input, Comparator<T> ordering, int limit) Constructor parameters in org.apache.druid.java.util.common.guava with type arguments of type SequenceModifierConstructorDescriptionConcatSequence(Sequence<? extends Sequence<? extends T>> baseSequences) LazySequence(com.google.common.base.Supplier<Sequence<T>> provider) MergeSequence(com.google.common.collect.Ordering<? super T> ordering, Sequence<? extends Sequence<? extends T>> baseSequences) ParallelMergeCombiningSequence(ForkJoinPool workerPool, List<Sequence<T>> inputSequences, com.google.common.collect.Ordering<T> orderingFn, BinaryOperator<T> combineFn, boolean hasTimeout, long timeoutMillis, int queryPriority, int parallelism, int yieldAfter, int batchSize, int targetTimeMillis, Consumer<ParallelMergeCombiningSequence.MergeCombineMetrics> reporter) -
Uses of Sequence in org.apache.druid.query
Methods in org.apache.druid.query that return SequenceModifier and TypeMethodDescriptionBySegmentSkippingQueryRunner.doRun(QueryRunner<T> baseRunner, QueryPlus<T> queryPlus, ResponseContext context) ResultMergeQueryRunner.doRun(QueryRunner<T> baseRunner, QueryPlus<T> queryPlus, ResponseContext context) FrameBasedInlineDataSource.getRowsAsSequence()QueryLogicCompatToolChest.resultsAsArrays(Query<Object> query, Sequence<Object> resultSequence) QueryToolChest.resultsAsArrays(QueryType query, Sequence<ResultType> resultSequence) Converts a sequence of this query's ResultType into arrays.BySegmentQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) BySegmentSkippingQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) ChainedExecutionQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) CPUTimeMetricQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) FinalizeResultsQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) FluentQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) MetricsEmittingQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) NoopQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) PerSegmentOptimizingQueryRunner.run(QueryPlus<T> input, ResponseContext responseContext) QueryPlus.run(QuerySegmentWalker walker, ResponseContext context) QueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) Runs the given query and returns results in a time-ordered sequence.ReportTimelineMissingSegmentQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) SubqueryQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) ToolChestBasedResultSerializedRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) UnionDataSourceQueryRunner.run(QueryPlus<T> queryPlus, ResponseContext responseContext) Methods in org.apache.druid.query that return types with arguments of type SequenceModifier and TypeMethodDescriptionQueryLogicCompatToolChest.resultsAsFrames(Query<Object> query, Sequence<Object> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) QueryToolChest.resultsAsFrames(QueryType query, Sequence<ResultType> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) Converts a sequence of this query's ResultType into a sequence ofFrameSignaturePair.Methods in org.apache.druid.query with parameters of type SequenceModifier and TypeMethodDescriptionIterableRowsCursorHelper.getCursorFromSequence(Sequence<Object[]> rows, RowSignature rowSignature) Creates a cursor that iterates over all the rows generated by the sequence.QueryLogicCompatToolChest.resultsAsArrays(Query<Object> query, Sequence<Object> resultSequence) QueryToolChest.resultsAsArrays(QueryType query, Sequence<ResultType> resultSequence) Converts a sequence of this query's ResultType into arrays.QueryLogicCompatToolChest.resultsAsFrames(Query<Object> query, Sequence<Object> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) QueryToolChest.resultsAsFrames(QueryType query, Sequence<ResultType> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) Converts a sequence of this query's ResultType into a sequence ofFrameSignaturePair. -
Uses of Sequence in org.apache.druid.query.groupby
Methods in org.apache.druid.query.groupby that return SequenceModifier and TypeMethodDescriptionGroupingEngine.applyPostProcessing(Sequence<ResultRow> results, GroupByQuery query) Apply theGroupByQuery"postProcessingFn", which is responsible for HavingSpec and LimitSpec.GroupingEngine.mergeResults(QueryRunner<ResultRow> baseRunner, GroupByQuery query, ResponseContext responseContext) Runs a providedQueryRunneron a providedGroupByQuery, which is assumed to return rows that are properly sorted (by timestamp and dimensions) but not necessarily fully merged (that is, there may be adjacent rows with the same timestamp and dimensions) and without PostAggregators computed.GroupByQuery.postProcess(Sequence<ResultRow> results) Apply the havingSpec and limitSpec.GroupingEngine.process(GroupByQuery query, CursorFactory cursorFactory, TimeBoundaryInspector timeBoundaryInspector, NonBlockingPool<ByteBuffer> bufferPool, GroupByQueryMetrics groupByQueryMetrics) Process a groupBy query on a singleCursorFactory.GroupingEngine.processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> subqueryResult, boolean wasQueryPushedDown, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to process a subquery.GroupingEngine.processSubtotalsSpec(GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> queryResult, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to generate subtotals.GroupByQueryQueryToolChest.resultsAsArrays(GroupByQuery query, Sequence<ResultRow> resultSequence) GroupingEngine.wrapSummaryRowIfNeeded(GroupByQuery query, Sequence<ResultRow> process) Wraps the sequence around if for this query a summary row might be needed in case the input becomes empty.Methods in org.apache.druid.query.groupby that return types with arguments of type SequenceModifier and TypeMethodDescriptionGroupByQueryQueryToolChest.resultsAsFrames(GroupByQuery query, Sequence<ResultRow> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the results of the group by query.Methods in org.apache.druid.query.groupby with parameters of type SequenceModifier and TypeMethodDescriptionGroupingEngine.applyPostProcessing(Sequence<ResultRow> results, GroupByQuery query) Apply theGroupByQuery"postProcessingFn", which is responsible for HavingSpec and LimitSpec.GroupByQuery.postProcess(Sequence<ResultRow> results) Apply the havingSpec and limitSpec.GroupingEngine.processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> subqueryResult, boolean wasQueryPushedDown, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to process a subquery.GroupingEngine.processSubtotalsSpec(GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> queryResult, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to generate subtotals.GroupByQueryQueryToolChest.resultsAsArrays(GroupByQuery query, Sequence<ResultRow> resultSequence) GroupByQueryQueryToolChest.resultsAsFrames(GroupByQuery query, Sequence<ResultRow> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the results of the group by query.GroupingEngine.wrapSummaryRowIfNeeded(GroupByQuery query, Sequence<ResultRow> process) Wraps the sequence around if for this query a summary row might be needed in case the input becomes empty. -
Uses of Sequence in org.apache.druid.query.groupby.epinephelinae
Methods in org.apache.druid.query.groupby.epinephelinae that return SequenceModifier and TypeMethodDescriptionGroupByQueryEngine.process(GroupByQuery query, TimeBoundaryInspector timeBoundaryInspector, CursorHolder cursorHolder, CursorBuildSpec buildSpec, ByteBuffer processingBuffer, org.joda.time.DateTime fudgeTimestamp, GroupByQueryConfig querySpecificConfig, DruidProcessingConfig processingConfig) GroupByRowProcessor.ResultSupplier.results(List<DimensionSpec> dimensionsToInclude) Return a result sequence.GroupByMergingQueryRunner.run(QueryPlus<ResultRow> queryPlus, ResponseContext responseContext) Methods in org.apache.druid.query.groupby.epinephelinae with parameters of type SequenceModifier and TypeMethodDescriptionGroupByRowProcessor.process(GroupByQuery query, GroupByQuery subquery, Sequence<ResultRow> rows, GroupByQueryConfig config, DruidProcessingConfig processingConfig, GroupByQueryResources resource, com.fasterxml.jackson.databind.ObjectMapper spillMapper, String processingTmpDir, int mergeBufferSize, GroupByStatsProvider.PerQueryStats perQueryStats) Process the input of sequence "rows" (output by "subquery") based on "query" and returns aGroupByRowProcessor.ResultSupplier. -
Uses of Sequence in org.apache.druid.query.groupby.epinephelinae.vector
Methods in org.apache.druid.query.groupby.epinephelinae.vector that return SequenceModifier and TypeMethodDescriptionVectorGroupByEngine.process(GroupByQuery query, TimeBoundaryInspector timeBoundaryInspector, CursorHolder cursorHolder, ByteBuffer processingBuffer, org.joda.time.DateTime fudgeTimestamp, org.joda.time.Interval interval, GroupByQueryConfig config, DruidProcessingConfig processingConfig) -
Uses of Sequence in org.apache.druid.query.groupby.orderby
Methods in org.apache.druid.query.groupby.orderby that return types with arguments of type SequenceModifier and TypeMethodDescriptionDefaultLimitSpec.build(GroupByQuery query) DefaultLimitSpec.build(GroupByQuery query) LimitSpec.build(GroupByQuery query) Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.LimitSpec.build(GroupByQuery query) Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.NoopLimitSpec.build(GroupByQuery query) NoopLimitSpec.build(GroupByQuery query) -
Uses of Sequence in org.apache.druid.query.operator
Classes in org.apache.druid.query.operator that implement SequenceMethods in org.apache.druid.query.operator that return SequenceModifier and TypeMethodDescriptionWindowOperatorQueryQueryToolChest.resultsAsArrays(WindowOperatorQuery query, Sequence<RowsAndColumns> resultSequence) Methods in org.apache.druid.query.operator that return types with arguments of type SequenceModifier and TypeMethodDescriptionWindowOperatorQueryQueryToolChest.resultsAsFrames(WindowOperatorQuery query, Sequence<RowsAndColumns> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) Methods in org.apache.druid.query.operator with parameters of type SequenceModifier and TypeMethodDescriptionWindowOperatorQueryQueryToolChest.resultsAsArrays(WindowOperatorQuery query, Sequence<RowsAndColumns> resultSequence) WindowOperatorQueryQueryToolChest.resultsAsFrames(WindowOperatorQuery query, Sequence<RowsAndColumns> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) Constructors in org.apache.druid.query.operator with parameters of type Sequence -
Uses of Sequence in org.apache.druid.query.scan
Classes in org.apache.druid.query.scan that implement SequenceModifier and TypeClassDescriptionclassA Sequence that wraps the results of a ScanQuery and skips a given number of rows.Methods in org.apache.druid.query.scan that return SequenceModifier and TypeMethodDescriptionScanQueryEngine.process(ScanQuery query, Segment segment, ResponseContext responseContext, QueryMetrics<?> queryMetrics) ScanQueryQueryToolChest.resultsAsArrays(ScanQuery query, Sequence<ScanResultValue> resultSequence) Methods in org.apache.druid.query.scan that return types with arguments of type SequenceModifier and TypeMethodDescriptionScanQueryQueryToolChest.resultsAsFrames(ScanQuery query, Sequence<ScanResultValue> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This batches the fetchedScanResultValues which have similar signatures and are consecutives.Methods in org.apache.druid.query.scan with parameters of type SequenceModifier and TypeMethodDescriptionScanQueryQueryToolChest.resultsAsArrays(ScanQuery query, Sequence<ScanResultValue> resultSequence) ScanQueryQueryToolChest.resultsAsFrames(ScanQuery query, Sequence<ScanResultValue> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This batches the fetchedScanResultValues which have similar signatures and are consecutives.Constructors in org.apache.druid.query.scan with parameters of type SequenceModifierConstructorDescriptionScanQueryOffsetSequence(Sequence<ScanResultValue> baseSequence, long skip) ScanResultValueFramesIterable(Sequence<ScanResultValue> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes, RowSignature defaultRowSignature, com.google.common.base.Function<RowSignature, com.google.common.base.Function<?, Object[]>> resultFormatMapper) ScanResultValueIterator(Sequence<ScanResultValue> resultSequence) -
Uses of Sequence in org.apache.druid.query.search
Methods in org.apache.druid.query.search that return SequenceModifier and TypeMethodDescriptionSearchQueryRunner.run(QueryPlus<Result<SearchResultValue>> queryPlus, ResponseContext responseContext) -
Uses of Sequence in org.apache.druid.query.spec
Methods in org.apache.druid.query.spec that return Sequence -
Uses of Sequence in org.apache.druid.query.timeboundary
Methods in org.apache.druid.query.timeboundary that return SequenceModifier and TypeMethodDescriptionTimeBoundaryQueryQueryToolChest.resultsAsArrays(TimeBoundaryQuery query, Sequence<Result<TimeBoundaryResultValue>> resultSequence) Methods in org.apache.druid.query.timeboundary with parameters of type SequenceModifier and TypeMethodDescriptionTimeBoundaryQueryQueryToolChest.resultsAsArrays(TimeBoundaryQuery query, Sequence<Result<TimeBoundaryResultValue>> resultSequence) -
Uses of Sequence in org.apache.druid.query.timeseries
Methods in org.apache.druid.query.timeseries that return SequenceModifier and TypeMethodDescriptionTimeseriesQueryEngine.process(TimeseriesQuery query, CursorFactory cursorFactory, TimeBoundaryInspector timeBoundaryInspector, TimeseriesQueryMetrics timeseriesQueryMetrics) Run a single-segment, single-interval timeseries query on a particular adapter.TimeseriesQueryQueryToolChest.resultsAsArrays(TimeseriesQuery query, Sequence<Result<TimeseriesResultValue>> resultSequence) Methods in org.apache.druid.query.timeseries that return types with arguments of type SequenceModifier and TypeMethodDescriptionTimeseriesQueryQueryToolChest.resultsAsFrames(TimeseriesQuery query, Sequence<Result<TimeseriesResultValue>> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the results of the timeseries queryMethods in org.apache.druid.query.timeseries with parameters of type SequenceModifier and TypeMethodDescriptionTimeseriesQueryQueryToolChest.resultsAsArrays(TimeseriesQuery query, Sequence<Result<TimeseriesResultValue>> resultSequence) TimeseriesQueryQueryToolChest.resultsAsFrames(TimeseriesQuery query, Sequence<Result<TimeseriesResultValue>> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the results of the timeseries query -
Uses of Sequence in org.apache.druid.query.topn
Methods in org.apache.druid.query.topn that return SequenceModifier and TypeMethodDescriptionTopNQueryEngine.query(TopNQuery query, Segment segment, TopNQueryMetrics queryMetrics) Do the thing - process aSegmentinto aSequenceofTopNResultValue, with one of the fineTopNAlgorithmavailable chosen based on the type of column being aggregated.TopNQueryQueryToolChest.resultsAsArrays(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence) Methods in org.apache.druid.query.topn that return types with arguments of type SequenceModifier and TypeMethodDescriptionTopNQueryQueryToolChest.resultsAsFrames(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the rows of the topN query's resultsMethods in org.apache.druid.query.topn with parameters of type SequenceModifier and TypeMethodDescriptionTopNQueryQueryToolChest.resultsAsArrays(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence) TopNQueryQueryToolChest.resultsAsFrames(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the rows of the topN query's results -
Uses of Sequence in org.apache.druid.segment
Constructors in org.apache.druid.segment with parameters of type SequenceModifierConstructorDescriptionRowBasedCursorFactory(Sequence<RowType> rowSequence, RowAdapter<RowType> rowAdapter, RowSignature rowSignature) RowBasedSegment(Sequence<RowType> rowSequence, RowAdapter<RowType> rowAdapter, RowSignature rowSignature) Create a row-based segment.RowWalker(Sequence<T> rowSequence, RowAdapter<T> rowAdapter)