public static class FoldingWindowBuffer.Factory<T,ACC> extends Object implements WindowBufferFactory<T,ACC,FoldingWindowBuffer<T,ACC>>
| Constructor and Description |
|---|
Factory(org.apache.flink.api.common.functions.FoldFunction<T,ACC> foldFunction,
ACC initialValue,
org.apache.flink.api.common.typeutils.TypeSerializer<ACC> accSerializer) |
| Modifier and Type | Method and Description |
|---|---|
FoldingWindowBuffer<T,ACC> |
create()
Creates a new
WindowBuffer. |
FoldingWindowBuffer<T,ACC> |
restoreFromSnapshot(org.apache.flink.core.memory.DataInputView in)
Restores a
WindowBuffer from a previous snapshot written using
WindowBuffer.snapshot(DataOutputView). |
public FoldingWindowBuffer<T,ACC> create()
WindowBufferFactoryWindowBuffer.create in interface WindowBufferFactory<T,ACC,FoldingWindowBuffer<T,ACC>>public FoldingWindowBuffer<T,ACC> restoreFromSnapshot(org.apache.flink.core.memory.DataInputView in) throws IOException
WindowBufferFactoryWindowBuffer from a previous snapshot written using
WindowBuffer.snapshot(DataOutputView).restoreFromSnapshot in interface WindowBufferFactory<T,ACC,FoldingWindowBuffer<T,ACC>>IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.