Package | Description |
---|---|
org.apache.edgent.window |
Window API.
|
Modifier and Type | Method and Description |
---|---|
static <T,K,L extends java.util.List<T>> |
Policies.alwaysInsert()
Returns an insertion policy that indicates the tuple
is to be inserted into the partition.
|
static <T,K,L extends java.util.List<T>> |
Policies.countContentsPolicy(int count)
Returns a count-based contents policy.
|
static <T,K,L extends java.util.List<T>> |
Policies.doNothing()
A
BiConsumer policy which does nothing. |
static <T,K,L extends java.util.List<T>> |
Policies.evictAll()
Returns a Consumer representing an evict determiner that evict all tuples
from the window.
|
static <T,K> Consumer<Partition<T,K,java.util.List<T>>> |
Policies.evictAllAndScheduleEvictWithProcess(long time,
java.util.concurrent.TimeUnit unit)
An eviction policy which processes the window, evicts all tuples, and
schedules the next eviction after the appropriate interval.
|
static <T,K> Consumer<Partition<T,K,InsertionTimeList<T>>> |
Policies.evictOlderWithProcess(long time,
java.util.concurrent.TimeUnit unit)
An eviction policy which evicts all tuples that are older than a specified time.
|
static <T,K,L extends java.util.List<T>> |
Policies.evictOldest()
Returns an evict determiner that evicts the oldest tuple.
|
BiConsumer<Partition<T,K,L>,T> |
Window.getContentsPolicy()
Returns the contents policy of the window.
|
Consumer<Partition<T,K,L>> |
Window.getEvictDeterminer()
Returns the window's eviction determiner.
|
BiFunction<Partition<T,K,L>,T,java.lang.Boolean> |
Window.getInsertionPolicy()
Returns the insertion policy of the window.
|
java.util.Map<K,Partition<T,K,L>> |
Window.getPartitions()
Retrieves the partitions in the window.
|
BiConsumer<Partition<T,K,L>,T> |
Window.getTriggerPolicy()
Returns the window's trigger policy.
|
static <T,K,L extends java.util.List<T>> |
Policies.processOnInsert()
Returns a trigger policy that triggers
processing on every insert.
|
static <T,K,L extends java.util.List<T>> |
Policies.processWhenFullAndEvict(int size)
Returns a trigger policy that triggers when the size of a partition
equals or exceeds a value, and then evicts its contents.
|
static <T,K,L extends java.util.List<T>> |
Policies.scheduleEvictIfEmpty(long time,
java.util.concurrent.TimeUnit unit)
A policy which schedules a future partition eviction if the partition is empty.
|
static <T,K,L extends java.util.List<T>> |
Policies.scheduleEvictOnFirstInsert(long time,
java.util.concurrent.TimeUnit unit)
A policy which schedules a future partition eviction on the first insert.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
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