DATA - The type of the data points which is handled by this policypublic class TumblingEvictionPolicy<DATA> extends Object implements CloneableEvictionPolicy<DATA>
ActiveEvictionPolicyWrapper to make it clearing the buffer even on
fake elements.| Constructor and Description |
|---|
TumblingEvictionPolicy()
This is the default constructor providing no special functionality.
|
TumblingEvictionPolicy(int startValue)
This constructor allows to set a custom start value for the element
counter.
|
| Modifier and Type | Method and Description |
|---|---|
TumblingEvictionPolicy<DATA> |
clone()
This method should return an exact copy of the object it belongs to
including the current object state.
|
boolean |
equals(Object other) |
int |
notifyEviction(Object datapoint,
boolean triggered,
int bufferSize)
Deletes all elements from the buffer in case the trigger occurred.
|
String |
toString() |
public TumblingEvictionPolicy()
public TumblingEvictionPolicy(int startValue)
startValue - A start value for the element counterpublic int notifyEviction(Object datapoint, boolean triggered, int bufferSize)
notifyEviction in interface EvictionPolicy<DATA>datapoint - data point the data point which arrivedtriggered - Information whether the UDF was triggered or notbufferSize - The current size of the element buffer at the operatorpublic TumblingEvictionPolicy<DATA> clone()
CloneableEvictionPolicyclone in interface CloneableEvictionPolicy<DATA>clone in class ObjectCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.