@Override
  public Set<String> getDatabases() {
    return databases;
  }
Get database name by device path

<p>e.g., root.sg1 is a database and device path = root.sg1.d1, return root.sg1

@param deviceID only full device path, cannot be path pattern
@return database in the given path
@throws SemanticException no matched database
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/schematree/ClusterSchemaTree.java