public abstract class SlidingGroupedPreReducer<T> extends SlidingPreReducer<T>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,T> |
currentReducedMap |
protected org.apache.flink.api.java.functions.KeySelector<T,?> |
key |
protected LinkedList<Map<Object,T>> |
reducedMap |
currentReduced, elementsPerPreAggregate, elementsSinceLastPreAggregate, reduced, reducer, serializer, toRemoveemitEmpty, emitPerGroup, nextID, sequentialID| Constructor and Description |
|---|
SlidingGroupedPreReducer(org.apache.flink.api.common.functions.ReduceFunction<T> reducer,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
org.apache.flink.api.java.functions.KeySelector<T,?> key) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCurrentToBuffer(T element) |
boolean |
addFinalAggregate(StreamWindow<T> currentWindow) |
protected boolean |
currentNotEmpty() |
protected void |
removeLastReduced() |
protected void |
resetCurrent() |
protected void |
updateCurrent(T element) |
addToBufferIfEligible, afterEmit, afterStore, clone, currentEligible, emitWindow, evict, max, store, toStringcreateEmptyWindow, emitEmpty, sequentialIDprotected LinkedList<Map<Object,T>> reducedMap
protected org.apache.flink.api.java.functions.KeySelector<T,?> key
public boolean addFinalAggregate(StreamWindow<T> currentWindow) throws Exception
addFinalAggregate in class SlidingPreReducer<T>Exceptionprotected void updateCurrent(T element) throws Exception
updateCurrent in class SlidingPreReducer<T>Exceptionprotected void removeLastReduced()
removeLastReduced in class SlidingPreReducer<T>protected void addCurrentToBuffer(T element) throws Exception
addCurrentToBuffer in class SlidingPreReducer<T>Exceptionprotected void resetCurrent()
resetCurrent in class SlidingPreReducer<T>protected boolean currentNotEmpty()
currentNotEmpty in class SlidingPreReducer<T>Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.