public int getAssignedSeriesPartitionSlotsCount(String database) {
    return Optional.ofNullable(databasePartitionTables.get(database))
        .map(DatabasePartitionTable::getAssignedSeriesPartitionSlotsCount)
        .orElse(0);
  }
Only leader use this interface.

<p>Get the assigned SeriesPartitionSlots count in the specified Database

@param database The specified Database
@return The assigned SeriesPartitionSlots count
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java