List of usage examples for java.util.concurrent ConcurrentSkipListMap lowerEntry
public Map.Entry<K, V> lowerEntry(K key)
From source file:com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService.java
@Override public Map<Cell, Value> get(String tableName, Map<Cell, Long> timestampByCell) { ConcurrentSkipListMap<Key, byte[]> table = getTableMap(tableName).entries; Map<Cell, Value> result = Maps.newHashMap(); for (Map.Entry<Cell, Long> e : timestampByCell.entrySet()) { Cell cell = e.getKey();/* ww w .j ava 2 s .c o m*/ Entry<Key, byte[]> lastEntry = table.lowerEntry(new Key(cell, e.getValue())); if (lastEntry != null) { Key key = lastEntry.getKey(); if (key.matchesCell(cell)) { long ts = lastEntry.getKey().ts; byte[] value = lastEntry.getValue(); result.put(cell, Value.create(value, ts)); } } } return result; }