protected void onChunkData(PageVisitor pageVisitor, int dataSize) throws IOException {
    while (dataSize > 0) {
      PageHeader pageHeader =
          reader.readPageHeader(
              currChunkHeader.getDataType(),
              (currChunkHeader.getChunkType() & 0x3F) == MetaMarker.CHUNK_HEADER);
      ByteBuffer pageData = reader.readPage(pageHeader, currChunkHeader.getCompressionType());
      pageVisitor.onPage(pageHeader, pageData, currChunkHeader);
      dataSize -= pageHeader.getSerializedPageSize();
    }
  }
@return true if the file should be scanned
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/utils/TsFileSequenceScan.java