地圖函式

Profile Query Language (PQL)提供的功能可讓您更輕鬆地與地圖互動。 有關其他PQL函式的詳細資訊,請參見 Profile Query Language 概述.

取得

get 函式可用來擷取指定索引鍵的對應值。

格式

{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功能的詳細資訊,請閱讀 設定檔查詢語言概觀.

本頁內容