Class 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 Detail

      • RotatingMap

        public RotatingMap​(int nBuckets)
    • Method Detail

      • rotate

        public void rotate()
      • create

        public void create​(long key,
                           long value)
      • anchor

        public boolean anchor​(long key,
                              long value)
      • remove

        public boolean remove​(long key)