public static TableSchema of(final TsTable tsTable) {
    final TableSchema schema =
        new TableSchema(
            tsTable.getTableName(),
            tsTable.getColumnList().stream()
                .map(ColumnSchema::ofTsColumnSchema)
                .collect(Collectors.toList()));
    schema.setProps(tsTable.getProps());
    return schema;
  }
Given the name of an ID column, return the index of this column among all ID columns, return -1
if not found.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/TableSchema.java