public static void createTableDevice(
      final ISchemaRegion schemaRegion,
      final String table,
      final Object[] deviceIds,
      final Map<String, String> attributes)
      throws MetadataException {
    schemaRegion.createOrUpdateTableDevice(
        new CreateOrUpdateTableDeviceNode(
            new PlanNodeId(""),
            null,
            table,
            Collections.singletonList(deviceIds),
            new ArrayList<>(attributes.keySet()),
            Collections.singletonList(
                attributes.values().stream()
                    .map(s -> s != null ? new Binary(s.getBytes(StandardCharsets.UTF_8)) : null)
                    .toArray())));
  }
Create time series quickly using createSimpleTimeSeriesInt64 with given string list of paths.

@param schemaRegion schemaRegion which you want to create time series
@param pathList
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/schemaRegion/SchemaRegionTestUtil.java