public static class PreAggregatingHeapWindowBuffer.Factory<T> extends Object implements WindowBufferFactory<T,PreAggregatingHeapWindowBuffer<T>>
| Constructor and Description |
|---|
PreAggregatingHeapWindowBuffer.Factory(ReduceFunction<T> reduceFunction) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Calls
close() on eventual user functions inside the buffer. |
PreAggregatingHeapWindowBuffer<T> |
create()
Creates a new
WindowBuffer. |
void |
open(Configuration config)
Calls
open() on eventual user functions inside the buffer. |
void |
setRuntimeContext(RuntimeContext ctx)
Sets the
RuntimeContext that is used to initialize eventual user functions
inside the created buffers. |
public PreAggregatingHeapWindowBuffer.Factory(ReduceFunction<T> reduceFunction)
public void setRuntimeContext(RuntimeContext ctx)
WindowBufferFactoryRuntimeContext that is used to initialize eventual user functions
inside the created buffers.setRuntimeContext in interface WindowBufferFactory<T,PreAggregatingHeapWindowBuffer<T>>public void open(Configuration config) throws Exception
WindowBufferFactoryopen() on eventual user functions inside the buffer.open in interface WindowBufferFactory<T,PreAggregatingHeapWindowBuffer<T>>Exceptionpublic void close()
throws Exception
WindowBufferFactoryclose() on eventual user functions inside the buffer.close in interface WindowBufferFactory<T,PreAggregatingHeapWindowBuffer<T>>Exceptionpublic PreAggregatingHeapWindowBuffer<T> create()
WindowBufferFactoryWindowBuffer.create in interface WindowBufferFactory<T,PreAggregatingHeapWindowBuffer<T>>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.