@Override
  public WALFlushListener log(
      long memTableId, InsertTabletNode insertTabletNode, List<int[]> rangeList) {
    logger.debug(
        "WAL node-{} logs insertTabletNode, the search index is {}.",
        identifier,
        insertTabletNode.getSearchIndex());
    WALEntry walEntry = new WALInfoEntry(memTableId, insertTabletNode, rangeList);
    return log(walEntry);
  }
This class encapsulates {@link IWALBuffer} and {@link CheckpointManager}. If search is enabled,
the order of search index should be protected by the upper layer, and the value should start from
1.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/node/WALNode.java