@Override
  public void createSchemaTemplate(
      String templateName,
      List<String> measurements,
      List<TSDataType> dataTypes,
      List<TSEncoding> encodings,
      List<CompressionType> compressors,
      boolean isAligned)
      throws IOException, IoTDBConnectionException, StatementExecutionException {
    Template temp = new Template(templateName, isAligned);
    int len = measurements.size();
    if (len != dataTypes.size() || len != encodings.size() || len != compressors.size()) {
      throw new StatementExecutionException(
          "Different length of measurements, datatypes, encodings "
              + "or compressors when create device template.");
    }
    for (int idx = 0; idx < measurements.size(); idx++) {
      MeasurementNode mNode =
          new MeasurementNode(
              measurements.get(idx), dataTypes.get(idx), encodings.get(idx), compressors.get(idx));
      temp.addToTemplate(mNode);
    }
    createSchemaTemplate(temp);
  }
Create a template with flat measurements, not tree structured. Need to specify datatype,
encoding and compressor of each measurement, and alignment of these measurements at once.

@param measurements flat measurements of the template, cannot contain character dot
@param dataTypes datatype of each measurement in the template
@param encodings encodings of each measurement in the template
@param compressors compression type of each measurement in the template
@param isAligned specify whether these flat measurements are aligned
@oaram templateName name of template to create
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java