Profile Query Language (PQL)提供函式,讓與地圖的互動更輕鬆。有關其他PQL函式的詳細資訊,請參閱Profile Query Language overview。
get
函式用於檢索給定鍵的映射值。
Format
{MAP}.get({STRING})
範例
以下PQL查詢獲取鍵example@example.com
的標識映射值。
identityMap.get("example@example.com")
keys
函式用於檢索給定映射的所有鍵。
格式
{MAP}.keys()
範例
以下PQL查詢獲取映射identityMap
的所有鍵。
identityMap.keys()
values
函式用於檢索給定映射的所有值。
格式
{MAP}.values()
範例
以下PQL查詢獲取映射identityMap
的所有值。
identityMap.values()
現在,您已經瞭解了映射函式,可以在PQL查詢中使用它們。 有關其他PQL函式的詳細資訊,請閱讀配置檔案查詢語言概述。