public class CombiningSequence<T> extends Object implements com.metamx.common.guava.Sequence<T>
Constructor and Description |
---|
CombiningSequence(com.metamx.common.guava.Sequence<T> baseSequence,
com.google.common.collect.Ordering<T> ordering,
com.metamx.common.guava.nary.BinaryFn<T,T,T> mergeFn) |
Modifier and Type | Method and Description |
---|---|
<OutType> OutType |
accumulate(OutType initValue,
com.metamx.common.guava.Accumulator<OutType,T> accumulator) |
static <T> CombiningSequence<T> |
create(com.metamx.common.guava.Sequence<T> baseSequence,
com.google.common.collect.Ordering<T> ordering,
com.metamx.common.guava.nary.BinaryFn<T,T,T> mergeFn) |
<OutType,T> |
makeYielder(com.metamx.common.guava.Yielder<T> yielder,
io.druid.common.guava.CombiningSequence.CombiningYieldingAccumulator<OutType,T> combiningAccumulator,
boolean finalValue) |
<OutType> com.metamx.common.guava.Yielder<OutType> |
toYielder(OutType initValue,
com.metamx.common.guava.YieldingAccumulator<OutType,T> accumulator) |
public static <T> CombiningSequence<T> create(com.metamx.common.guava.Sequence<T> baseSequence, com.google.common.collect.Ordering<T> ordering, com.metamx.common.guava.nary.BinaryFn<T,T,T> mergeFn)
public <OutType> OutType accumulate(OutType initValue, com.metamx.common.guava.Accumulator<OutType,T> accumulator)
accumulate
in interface com.metamx.common.guava.Sequence<T>
public <OutType> com.metamx.common.guava.Yielder<OutType> toYielder(OutType initValue, com.metamx.common.guava.YieldingAccumulator<OutType,T> accumulator)
toYielder
in interface com.metamx.common.guava.Sequence<T>
public <OutType,T> com.metamx.common.guava.Yielder<OutType> makeYielder(com.metamx.common.guava.Yielder<T> yielder, io.druid.common.guava.CombiningSequence.CombiningYieldingAccumulator<OutType,T> combiningAccumulator, boolean finalValue)
Copyright © 2011–2015. All rights reserved.