public void newRecordIndex(Long newValue, Record record) { long recordId = record.getId(); ConcurrentMap<Long, Record> records = mapRecords.get(newValue); if (records == null) { records = new ConcurrentHashMap<Long, Record>(1, 0.75f, 1); mapRecords.put(newValue, records); sortedSet.add(newValue); } records.put(recordId, record); }