@Override
  public void setSchemaTemplate(String templateName, String prefixPath)
      throws IoTDBConnectionException, StatementExecutionException {
    TSSetSchemaTemplateReq request = getTSSetSchemaTemplateReq(templateName, prefixPath);
    defaultSessionConnection.setSchemaTemplate(request);
  }
sort BitMap by index

@param bitMap BitMap to be sorted
@param index index
@return sorted bitMap
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java