Package org.apache.heron.simulator.utils
Class RotatingMap
- java.lang.Object
-
- org.apache.heron.simulator.utils.RotatingMap
-
public class RotatingMap extends Object
Rotating Map maintains a list of unordered maps. Every time a rotate is called, it drops the last map and instantiates a new map at the head of the list. The create operation adds elements to the front map of the list. The anchor and remove operation do their operations starting from the front of the list to the back.
-
-
Constructor Summary
Constructors Constructor Description RotatingMap(int nBuckets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
anchor(long key, long value)
void
create(long key, long value)
boolean
remove(long key)
void
rotate()
-