private void saveEntryString(OffheapBytes curEntry, boolean isFlush) throws IOException {
        entryCount++;
        if (entryOffsetBuffer.remaining() >= 4) {
            entryOffsetBuffer.putInt(strEntryLastOffset);
            strEntryLastOffset += curEntry.len();
        } else {
            entryOffsetBuffer.flip();
            entryOffsetFile.write(entryOffsetBuffer);
            entryOffsetBuffer.clear();

            entryOffsetBuffer.putInt(strEntryLastOffset);
            strEntryLastOffset += curEntry.len();
        }

        if (entryBuffer.remaining() >= curEntry.len()) {
            MemoryUtil.copyMemory(curEntry.addr(), entryBufferAddr + entryBuffer.position(), curEntry.len());
            entryBuffer.position(entryBuffer.position() + curEntry.len());
        } else {
            entryBuffer.flip();
            entryFile.write(entryBuffer);
            entryBuffer.clear();

            MemoryUtil.copyMemory(curEntry.addr(), entryBufferAddr + entryBuffer.position(), curEntry.len());
            entryBuffer.position(entryBuffer.position() + curEntry.len());
        }
        if (isFlush) {
            entryOffsetBuffer.flip();
            entryOffsetFile.write(entryOffsetBuffer);
            entryOffsetBuffer.clear();

            // n string entries got n+1 offsets
            entryOffsetBuffer.putInt(strEntryLastOffset);
            entryOffsetBuffer.flip();
            entryOffsetFile.write(entryOffsetBuffer);
            entryOffsetBuffer.clear();

            entryBuffer.flip();
            entryFile.write(entryBuffer);
            entryBuffer.clear();
        }
    }
Delete all files generated by this class.
indexr-vlt-segment/src/main/java/io/indexr/vlt/segment/index/DictMerge.java