public void addMeasurement(MeasurementPath measurementPath) {
    if (measurementList == null) {
      measurementList = new ArrayList<>();
    }
    measurementList.add(measurementPath.getMeasurement());

    if (schemaList == null) {
      schemaList = new ArrayList<>();
    }
    schemaList.add(measurementPath.getMeasurementSchema());
  }
This method is used by last read. Comparator<Binary> and Comparator<String> behaves differently
and that is why we use Comparator<Binary> here.

@param comparator
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/AlignedPath.java