Mapping(IndexMappingBuffer buffer) { TIntObjectHashMap<IndexMappingBufferRecord> map = buffer.getMap(); fromNames = new int[map.size()]; toData = new int[map.size()]; TIntObjectIterator<IndexMappingBufferRecord> iterator = map.iterator(); int i = 0; IndexMappingBufferRecord record; while (iterator.hasNext()) { iterator.advance(); record = iterator.value(); fromNames[i] = iterator.key(); toData[i] = record.getRawDiffStateBit() | record.getIndexName(); ++i; } ArraysUtils.quickSort(fromNames, toData); sign = buffer.getSign(); }
for (int mapFrom = 0; mapFrom < size; ++mapFrom) { int fromIndex = fromIndices.get(mapFrom); IndexMappingBufferRecord bRec = currentBuffer.getMap().get(getNameWithType(fromIndex));