Uses of Interface
org.apache.druid.segment.Cursor
-
-
Uses of Cursor in org.apache.druid.frame.segment
Classes in org.apache.druid.frame.segment that implement Cursor Modifier and Type Class Description classFrameCursorMethods in org.apache.druid.frame.segment that return types with arguments of type Cursor Modifier and Type Method Description Sequence<Cursor>FrameStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Methods in org.apache.druid.frame.segment with parameters of type Cursor Modifier and Type Method Description static Iterable<Frame>FrameCursorUtils. cursorToFramesIterable(Cursor cursor, FrameWriterFactory frameWriterFactory)static Sequence<Frame>FrameCursorUtils. cursorToFramesSequence(Cursor cursor, FrameWriterFactory frameWriterFactory) -
Uses of Cursor in org.apache.druid.frame.segment.columnar
Methods in org.apache.druid.frame.segment.columnar that return types with arguments of type Cursor Modifier and Type Method Description Sequence<Cursor>FrameCursorFactory. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics) -
Uses of Cursor in org.apache.druid.frame.segment.row
Methods in org.apache.druid.frame.segment.row that return types with arguments of type Cursor Modifier and Type Method Description Sequence<Cursor>FrameCursorFactory. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics) -
Uses of Cursor in org.apache.druid.query
Methods in org.apache.druid.query that return types with arguments of type Cursor Modifier and Type Method Description static Pair<Cursor,Closeable>IterableRowsCursorHelper. getCursorFromIterable(Iterable<Object[]> rows, RowSignature rowSignature)Creates a cursor that iterates over all the rows generated by the iterable.static Pair<Cursor,Closeable>IterableRowsCursorHelper. getCursorFromSequence(Sequence<Object[]> rows, RowSignature rowSignature)Creates a cursor that iterates over all the rows generated by the sequence.static Pair<Cursor,Closeable>IterableRowsCursorHelper. getCursorFromYielder(Yielder<Object[]> yielderParam, RowSignature rowSignature)Method parameters in org.apache.druid.query with type arguments of type Cursor Modifier and Type Method Description static <T> Sequence<Result<T>>QueryRunnerHelper. makeCursorBasedQuery(StorageAdapter adapter, List<org.joda.time.Interval> queryIntervals, Filter filter, VirtualColumns virtualColumns, boolean descending, Granularity granularity, com.google.common.base.Function<Cursor,Result<T>> mapFn, QueryMetrics<?> queryMetrics) -
Uses of Cursor in org.apache.druid.query.scan
Constructor parameters in org.apache.druid.query.scan with type arguments of type Cursor Constructor Description SettableCursorColumnSelectorFactory(Supplier<Cursor> cursorSupplier, RowSignature rowSignature) -
Uses of Cursor in org.apache.druid.query.topn
Methods in org.apache.druid.query.topn that return Cursor Modifier and Type Method Description CursorTopNParams. getCursor()Methods in org.apache.druid.query.topn with parameters of type Cursor Modifier and Type Method Description Result<TopNResultValue>TopNMapFn. apply(Cursor cursor, TopNQueryMetrics queryMetrics)voidDefaultTopNQueryMetrics. cursor(Cursor cursor)voidTopNQueryMetrics. cursor(Cursor cursor)This method is called exactly once with each cursor, processed for the query.static Aggregator[]BaseTopNAlgorithm. makeAggregators(Cursor cursor, List<AggregatorFactory> aggregatorSpecs)protected static BufferAggregator[]BaseTopNAlgorithm. makeBufferAggregators(Cursor cursor, List<AggregatorFactory> aggregatorSpecs)TopNParamsAggregateTopNMetricFirstAlgorithm. makeInitParams(ColumnSelectorPlus selectorPlus, Cursor cursor)TopNParamsHeapBasedTopNAlgorithm. makeInitParams(ColumnSelectorPlus<TopNColumnAggregatesProcessor> selectorPlus, Cursor cursor)PooledTopNAlgorithm.PooledTopNParamsPooledTopNAlgorithm. makeInitParams(ColumnSelectorPlus selectorPlus, Cursor cursor)TopNParamsTimeExtractionTopNAlgorithm. makeInitParams(ColumnSelectorPlus selectorPlus, Cursor cursor)TopNParamsTopNAlgorithm. makeInitParams(ColumnSelectorPlus<TopNColumnAggregatesProcessor> selectorPlus, Cursor cursor)longGeneric1AggPooledTopNScanner. scanAndAggregate(DimensionSelector dimensionSelector, BufferAggregator aggregator, int aggregatorSize, Cursor cursor, int[] positions, ByteBuffer resultsBuffer)longGeneric1AggPooledTopNScannerPrototype. scanAndAggregate(DimensionSelector dimensionSelector, BufferAggregator aggregator, int aggregatorSize, Cursor cursor, int[] positions, ByteBuffer resultsBuffer)Any changes to this method should be coordinated withTopNUtils,PooledTopNAlgorithm.computeSpecializedScanAndAggregateImplementations()and downstream methods.longGeneric2AggPooledTopNScanner. scanAndAggregate(DimensionSelector dimensionSelector, BufferAggregator aggregator1, int aggregator1Size, BufferAggregator aggregator2, int aggregator2Size, Cursor cursor, int[] positions, ByteBuffer resultsBuffer)longGeneric2AggPooledTopNScannerPrototype. scanAndAggregate(DimensionSelector dimensionSelector, BufferAggregator aggregator1, int aggregator1Size, BufferAggregator aggregator2, int aggregator2Size, Cursor cursor, int[] positions, ByteBuffer resultsBuffer)Any changes to this method should be coordinated withTopNUtils,PooledTopNAlgorithm.computeSpecializedScanAndAggregateImplementations()and downstream methods.PooledTopNAlgorithm.PooledTopNParams.BuilderPooledTopNAlgorithm.PooledTopNParams.Builder. withCursor(Cursor cursor)Constructors in org.apache.druid.query.topn with parameters of type Cursor Constructor Description PooledTopNParams(ColumnSelectorPlus selectorPlus, Cursor cursor, ResourceHolder<ByteBuffer> resultsBufHolder, ByteBuffer resultsBuf, int[] aggregatorSizes, int numBytesPerRecord, int numValuesPerPass, TopNMetricSpecBuilder<int[]> arrayProvider)TopNParams(ColumnSelectorPlus<TopNColumnAggregatesProcessor> selectorPlus, Cursor cursor, int numValuesPerPass) -
Uses of Cursor in org.apache.druid.query.topn.types
Methods in org.apache.druid.query.topn.types with parameters of type Cursor Modifier and Type Method Description longNullableNumericTopNColumnAggregatesProcessor. scanAndAggregate(TopNQuery query, Selector selector, Cursor cursor, Aggregator[][] rowSelector)longStringTopNColumnAggregatesProcessor. scanAndAggregate(TopNQuery query, DimensionSelector selector, Cursor cursor, Aggregator[][] rowSelector)longTopNColumnAggregatesProcessor. scanAndAggregate(TopNQuery query, ValueSelectorType selector, Cursor cursor, Aggregator[][] rowSelector)Used byHeapBasedTopNAlgorithm. -
Uses of Cursor in org.apache.druid.segment
Classes in org.apache.druid.segment that implement Cursor Modifier and Type Class Description classRowBasedCursor<RowType>ACursorthat is based on a stream of objects.classUnnestColumnValueSelectorCursorThe cursor to help unnest MVDs without dictionary encoding and ARRAY type selectors.classUnnestDimensionCursorThe cursor to help unnest MVDs with dictionary encoding.Methods in org.apache.druid.segment that return types with arguments of type Cursor Modifier and Type Method Description Sequence<Cursor>QueryableIndexCursorSequenceBuilder. build(Granularity gran)Sequence<Cursor>CursorFactory. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Creates a sequence of Cursors, one for each time-granular bucket (based on the provided Granularity).Sequence<Cursor>FilteredStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Sequence<Cursor>QueryableIndexStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Sequence<Cursor>RowBasedStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval queryInterval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Sequence<Cursor>UnnestStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Constructors in org.apache.druid.segment with parameters of type Cursor Constructor Description UnnestColumnValueSelectorCursor(Cursor cursor, ColumnSelectorFactory baseColumnSelectorFactory, VirtualColumn unnestColumn, String outputColumnName)UnnestDimensionCursor(Cursor cursor, ColumnSelectorFactory baseColumnSelectorFactory, VirtualColumn unnestColumn, String outputColumnName) -
Uses of Cursor in org.apache.druid.segment.historical
Subinterfaces of Cursor in org.apache.druid.segment.historical Modifier and Type Interface Description interfaceHistoricalCursor -
Uses of Cursor in org.apache.druid.segment.incremental
Methods in org.apache.druid.segment.incremental that return types with arguments of type Cursor Modifier and Type Method Description Sequence<Cursor>IncrementalIndexStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics) -
Uses of Cursor in org.apache.druid.segment.join
Classes in org.apache.druid.segment.join that implement Cursor Modifier and Type Class Description classPostJoinCursorA Cursor decorator used byHashJoinSegmentStorageAdapter.makeCursors(org.apache.druid.query.filter.Filter, org.joda.time.Interval, org.apache.druid.segment.VirtualColumns, org.apache.druid.java.util.common.granularity.Granularity, boolean, org.apache.druid.query.QueryMetrics<?>)to add post-join virtual columns and filters.Methods in org.apache.druid.segment.join that return Cursor Modifier and Type Method Description static CursorHashJoinEngine. makeJoinCursor(Cursor leftCursor, JoinableClause joinableClause, boolean descending, Closer closer)Creates a cursor that represents the join of {@param leftCursor} with {@param joinableClause}.Methods in org.apache.druid.segment.join that return types with arguments of type Cursor Modifier and Type Method Description Sequence<Cursor>HashJoinSegmentStorageAdapter. makeCursors(Filter filter, org.joda.time.Interval interval, VirtualColumns virtualColumns, Granularity gran, boolean descending, QueryMetrics<?> queryMetrics)Methods in org.apache.druid.segment.join with parameters of type Cursor Modifier and Type Method Description static CursorHashJoinEngine. makeJoinCursor(Cursor leftCursor, JoinableClause joinableClause, boolean descending, Closer closer)Creates a cursor that represents the join of {@param leftCursor} with {@param joinableClause}.static PostJoinCursorPostJoinCursor. wrap(Cursor baseCursor, VirtualColumns virtualColumns, Filter filter)
-