@Override
  public String inspect() throws SegmentNotFoundException {
    syncPageBuffer();
    StringBuilder builder =
        new StringBuilder(
            String.format(
                "page_id:%d, total_seg:%d, spare_from:%d, spare_size:%d%n",
                pageIndex, memberNum, spareOffset, spareSize));
    for (short idx = 0; idx < segOffsetLst.size(); idx++) {
      short offset = segOffsetLst.get(idx);
      if (offset < 0) {
        builder.append(String.format("seg_id:%d deleted, offset:%d%n", idx, offset));
      } else {
        ISegment<?, ?> seg = getSegment(idx);
        builder.append(
            String.format(
                "seg_id:%d, offset:%d, address:%s, next_seg:%s, %s%n",
                idx,
                offset,
                Long.toHexString(SchemaFile.getGlobalIndex(pageIndex, idx)),
                seg.getNextSegAddress() == -1 ? -1 : Long.toHexString(seg.getNextSegAddress()),
                seg.inspect()));
      }
    }
    return builder.toString();
  }
Implementing marking deletion will not modify {@linkplain #memberNum} nor truncate {@linkplain
#segOffsetLst}.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/schemafile/SegmentedPage.java