Search in sources :

Example 1 with WatermarkCountEvictionPolicy

use of org.apache.heron.api.windowing.evictors.WatermarkCountEvictionPolicy in project heron by twitter.

the class WindowManagerTest method testExpireThresholdWithWatermarkCountEvictionPolicy.

@Test
@SuppressWarnings("rawtypes")
public void testExpireThresholdWithWatermarkCountEvictionPolicy() throws Exception {
    int windowLength = WindowManager.EXPIRE_EVENTS_THRESHOLD;
    EvictionPolicy watermarkCountEvictionPolicy = new WatermarkCountEvictionPolicy(windowLength);
    testEvictBeforeWatermarkForWatermarkEvictionPolicy(watermarkCountEvictionPolicy, windowLength);
}
Also used : CountEvictionPolicy(org.apache.heron.api.windowing.evictors.CountEvictionPolicy) WatermarkTimeEvictionPolicy(org.apache.heron.api.windowing.evictors.WatermarkTimeEvictionPolicy) TimeEvictionPolicy(org.apache.heron.api.windowing.evictors.TimeEvictionPolicy) WatermarkCountEvictionPolicy(org.apache.heron.api.windowing.evictors.WatermarkCountEvictionPolicy) WatermarkCountEvictionPolicy(org.apache.heron.api.windowing.evictors.WatermarkCountEvictionPolicy) Test(org.junit.Test)

Aggregations

CountEvictionPolicy (org.apache.heron.api.windowing.evictors.CountEvictionPolicy)1 TimeEvictionPolicy (org.apache.heron.api.windowing.evictors.TimeEvictionPolicy)1 WatermarkCountEvictionPolicy (org.apache.heron.api.windowing.evictors.WatermarkCountEvictionPolicy)1 WatermarkTimeEvictionPolicy (org.apache.heron.api.windowing.evictors.WatermarkTimeEvictionPolicy)1 Test (org.junit.Test)1