TSource
- Type of the enumerable input sourceTKey
- Type of the group-by keyTOrigAccumulate
- Type of the original accumulatorTResult
- Type of the enumerable output resultpublic class LazyAggregateLambdaFactory<TSource,TKey,TOrigAccumulate,TResult> extends java.lang.Object implements AggregateLambdaFactory<TSource,TOrigAccumulate,LazyAggregateLambdaFactory.LazySource<TSource>,TResult,TKey>
Modifier and Type | Class and Description |
---|---|
static interface |
LazyAggregateLambdaFactory.LazyAccumulator<TOrigAccumulate,TSource>
Accumulate on the cached input sources.
|
static class |
LazyAggregateLambdaFactory.LazySource<TSource>
Cache the input sources.
|
Modifier and Type | Field and Description |
---|---|
private Function0<TOrigAccumulate> |
accumulatorInitializer |
private java.util.List<LazyAggregateLambdaFactory.LazyAccumulator<TOrigAccumulate,TSource>> |
accumulators |
Constructor and Description |
---|
LazyAggregateLambdaFactory(Function0<TOrigAccumulate> accumulatorInitializer,
java.util.List<LazyAggregateLambdaFactory.LazyAccumulator<TOrigAccumulate,TSource>> accumulators) |
Modifier and Type | Method and Description |
---|---|
Function2<LazyAggregateLambdaFactory.LazySource<TSource>,TSource,LazyAggregateLambdaFactory.LazySource<TSource>> |
accumulatorAdder() |
Function0<LazyAggregateLambdaFactory.LazySource<TSource>> |
accumulatorInitializer() |
Function2<TKey,LazyAggregateLambdaFactory.LazySource<TSource>,TResult> |
resultSelector(Function2<TKey,TOrigAccumulate,TResult> resultSelector) |
Function1<LazyAggregateLambdaFactory.LazySource<TSource>,TResult> |
singleGroupResultSelector(Function1<TOrigAccumulate,TResult> resultSelector) |
private final Function0<TOrigAccumulate> accumulatorInitializer
private final java.util.List<LazyAggregateLambdaFactory.LazyAccumulator<TOrigAccumulate,TSource>> accumulators
public LazyAggregateLambdaFactory(Function0<TOrigAccumulate> accumulatorInitializer, java.util.List<LazyAggregateLambdaFactory.LazyAccumulator<TOrigAccumulate,TSource>> accumulators)
public Function0<LazyAggregateLambdaFactory.LazySource<TSource>> accumulatorInitializer()
accumulatorInitializer
in interface AggregateLambdaFactory<TSource,TOrigAccumulate,LazyAggregateLambdaFactory.LazySource<TSource>,TResult,TKey>
public Function2<LazyAggregateLambdaFactory.LazySource<TSource>,TSource,LazyAggregateLambdaFactory.LazySource<TSource>> accumulatorAdder()
accumulatorAdder
in interface AggregateLambdaFactory<TSource,TOrigAccumulate,LazyAggregateLambdaFactory.LazySource<TSource>,TResult,TKey>
public Function1<LazyAggregateLambdaFactory.LazySource<TSource>,TResult> singleGroupResultSelector(Function1<TOrigAccumulate,TResult> resultSelector)
singleGroupResultSelector
in interface AggregateLambdaFactory<TSource,TOrigAccumulate,LazyAggregateLambdaFactory.LazySource<TSource>,TResult,TKey>
public Function2<TKey,LazyAggregateLambdaFactory.LazySource<TSource>,TResult> resultSelector(Function2<TKey,TOrigAccumulate,TResult> resultSelector)
resultSelector
in interface AggregateLambdaFactory<TSource,TOrigAccumulate,LazyAggregateLambdaFactory.LazySource<TSource>,TResult,TKey>
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.