T
- Type of tuples in the partition.K
- Type of the partition's key.L
- Type of the list holding the partition's tuples.public interface Partition<T,K,L extends java.util.List<T>>
extends java.io.Serializable
Window
. The contents of the list
returned by getContents
is stable when synchronizing
on the partition object. For example:
Partition<Integer, Integer, ArrayList<Integer>> part = ...;
synchronized(part){
List<Integer> = part.getContents();
// stable operation on contents of partition
}
Window
Modifier and Type | Method and Description |
---|---|
void |
evict()
Calls the partition's evictDeterminer.
|
L |
getContents()
Retrieves the window contents.
|
K |
getKey()
Returns the key associated with this partition
|
Window<T,K,L> |
getWindow()
Return the window in which this partition is contained.
|
boolean |
insert(T tuple)
Offers a tuple to be inserted into the partition.
|
void |
process()
Invoke the WindowProcessor's processWindow method.
|
boolean insert(T tuple)
tuple
- Tuple to be offered.void process()
void evict()
L getContents()
Window<T,K,L> getWindow()
K getKey()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641