List of usage examples for java.util.concurrent ConcurrentSkipListMap ceilingKey
public K ceilingKey(K key)
From source file:com.sm.store.TestScanKey.java
public static Key findCeilKey(ConcurrentSkipListMap map, Key key) { Key to = (Key) map.ceilingKey(key); if (to == null) to = (Key) map.floorKey(key); return to;/*from ww w . ja v a 2 s.c o m*/ }
From source file:com.sm.store.TestScanKey.java
public static Key findFloorKey(ConcurrentSkipListMap map, Key key) { Key from = (Key) map.floorKey(key); if (from == null) from = (Key) map.ceilingKey(key); return from;//from www . j a va2s .co m }
From source file:voldemort.store.cachestore.impl.SortedCacheStore.java
public Key findFloorKey(ConcurrentSkipListMap map, Key key) { Key from = (Key) map.floorKey(key); if (from == null) from = (Key) map.ceilingKey(key); return from;//from w w w.ja va2s . c om }
From source file:voldemort.store.cachestore.impl.SortedCacheStore.java
public Key findCeilKey(ConcurrentSkipListMap map, Key key) { Key to = (Key) map.ceilingKey(key); if (to == null) to = (Key) map.floorKey(key); return to;/*from ww w . j a va 2s .c o m*/ }