Package org.apache.druid.query.scan
Class ScanQueryOffsetSequence
- java.lang.Object
-
- org.apache.druid.java.util.common.guava.YieldingSequenceBase<ScanResultValue>
-
- org.apache.druid.query.scan.ScanQueryOffsetSequence
-
- All Implemented Interfaces:
Sequence<ScanResultValue>
public class ScanQueryOffsetSequence extends YieldingSequenceBase<ScanResultValue>
A Sequence that wraps the results of a ScanQuery and skips a given number of rows. It is used to implement the "offset" feature.
-
-
Constructor Summary
Constructors Constructor Description ScanQueryOffsetSequence(Sequence<ScanResultValue> baseSequence, long skip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <OutType> Yielder<OutType>
toYielder(OutType initValue, YieldingAccumulator<OutType,ScanResultValue> accumulator)
Return a Yielder for accumulated sequence.-
Methods inherited from class org.apache.druid.java.util.common.guava.YieldingSequenceBase
accumulate
-
-
-
-
Constructor Detail
-
ScanQueryOffsetSequence
public ScanQueryOffsetSequence(Sequence<ScanResultValue> baseSequence, long skip)
-
-
Method Detail
-
toYielder
public <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType,ScanResultValue> accumulator)
Description copied from interface:Sequence
Return a Yielder for accumulated sequence.- Type Parameters:
OutType
- the type of accumulated value.- Parameters:
initValue
- the initial value to pass along to start the accumulation.accumulator
- the accumulator which is responsible for accumulating input values.- Returns:
- a Yielder for accumulated sequence.
- See Also:
Yielder
-
-