Package | Description |
---|---|
org.apache.edgent.oplet.window |
Oplets using windows.
|
org.apache.edgent.window |
Window API.
|
Constructor and Description |
---|
Aggregate(Window<T,K,? extends java.util.List<T>> window,
BiFunction<java.util.List<T>,K,U> aggregator) |
Modifier and Type | Method and Description |
---|---|
Window<T,K,L> |
Partition.getWindow()
Return the window in which this partition is contained.
|
static <T,K> Window<T,K,java.util.LinkedList<T>> |
Windows.lastNProcessOnInsert(int count,
Function<T,K> keyFunction)
Return a window that maintains the last
count tuples inserted
with processing triggered on every insert. |
static <T,K,L extends java.util.List<T>> |
Windows.window(BiFunction<Partition<T,K,L>,T,java.lang.Boolean> insertionPolicy,
BiConsumer<Partition<T,K,L>,T> contentsPolicy,
Consumer<Partition<T,K,L>> evictDeterminer,
BiConsumer<Partition<T,K,L>,T> triggerPolicy,
Function<T,K> keyFunction,
Supplier<L> listSupplier)
Create a window using the passed in policies.
|
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641