Class SkippingSequence<T>

java.lang.Object
org.apache.druid.java.util.common.guava.YieldingSequenceBase<T>
org.apache.druid.java.util.common.guava.SkippingSequence<T>
All Implemented Interfaces:
Sequence<T>

public class SkippingSequence<T> extends YieldingSequenceBase<T>
A Sequence that skips the first few elements.
  • Constructor Details

    • SkippingSequence

      public SkippingSequence(Sequence<T> baseSequence, long skip)
  • Method Details

    • toYielder

      public <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType,T> 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: