@Override public boolean moveNext() throws IOException { if (curDictIndex < dictionaryList.size() && curKey <= curDict.getMaxId()) { byte[] buffer = new byte[curDict.getSizeOfValue()]; int size = curDict.getValueBytesFromId(curKey, buffer, 0); curValue = Bytes.copy(buffer, 0, size); if (++curKey > curDict.getMaxId()) { if (++curDictIndex < dictionaryList.size()) { curDict = dictionaryList.get(curDictIndex); curKey = curDict.getMinId(); } } return true; } curValue = null; return false; }
int idInMergedDict; int size = sourceDict.getValueBytesFromId(idInSourceDict, newKeyBuf, bufOffset); if (size < 0) { idInMergedDict = mergedDict.nullId();