Class ExplodingSequence<T>
java.lang.Object
org.apache.druid.java.util.common.guava.YieldingSequenceBase<T>
org.apache.druid.java.util.common.guava.ExplodingSequence<T>
- All Implemented Interfaces:
Sequence<T>
Wraps an underlying sequence and allows us to force it to explode at various points.
-
Constructor Summary
ConstructorsConstructorDescriptionExplodingSequence(Sequence<T> baseSequence, boolean getThrowsException, boolean closeThrowsException) -
Method Summary
Modifier and TypeMethodDescriptionlong<OutType> Yielder<OutType>toYielder(OutType initValue, YieldingAccumulator<OutType, T> accumulator) Return a Yielder for accumulated sequence.Methods inherited from class org.apache.druid.java.util.common.guava.YieldingSequenceBase
accumulate
-
Constructor Details
-
ExplodingSequence
-
-
Method Details
-
toYielder
public <OutType> Yielder<OutType> toYielder(OutType initValue, YieldingAccumulator<OutType, T> accumulator) Description copied from interface:SequenceReturn 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:
-
getCloseCount
public long getCloseCount()
-