public Map<String, Binary> getDeviceAttribute(final String database, final IDeviceID deviceId) {
    final TableDeviceCacheEntry entry =
        dualKeyCache.get(new TableId(database, deviceId.getTableName()), deviceId);
    return entry == null ? null : entry.getAttributeMap();
  }
In table model: {@literal <}{@link QualifiedObjectName}, {@link IDeviceID}, lastCache /
attributes{@literal >}

<p>In tree model: {@literal <}Pair{@literal <}{@code null}, tableName(translated){@literal >},
{@link IDeviceID}(translated), Map{@literal <}Measurement, Schema{@literal
>}/templateInfo{@literal >}
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/cache/TableDeviceSchemaCache.java