GetHieMembersResult GetHieMembers(HieId tHie, GetHieMembersArg tArg)
tHie. Factors hierarchy moniker.
tArg. Parameters for getting the list of factors elements.
The GetHieMembers operation extracts the list of elements of the factors hierarchy.
To execute the operation, in the tHie parameter specify hierarchy moniker, and in the tArg field specify parameters for extracting information about the factors. The moniker can be obtained on executing the OpenHie operation. The result of the operation is a collection of factors available in the hms field.
{ "GetHieMembers" : { "tHie" : { "id" : "S1!M!S!H2" }, "tArg" : { "parent" : { "p" : "" }, "filter" : "", "pattern" : { "attributes" : "", "getAttsTextValues" : "true" } } } }
{ "GetHieMembersResult" : { "id" : { "id" : "S1!M!S!H2" }, "parent" : { "p" : "" }, "hms" : { "m" : [ { "@isLeaf" : "0", "p" : "1@1", "n" : "Annual", "o" : "0" }, { "@isLeaf" : "1", "p" : "1@3;2@36", "n" : "Quarterly|United States", "o" : "0" }, { "@isLeaf" : "1", "p" : "1@4;2@36", "n" : "Monthly|United States", "o" : "0" } ] }, "notEof" : "0" } }
The GetHieMembers function specified below opens a hierarchy of time series database factors. The specified factors' metadata is also extracted on opening. Database moniker is sent an input parameter. The result of the operation is the result of the function.
public static GetHieMembersResult GetHieMembers(HieId id) { var somClient = new SomPortTypeClient(); //Proxy object for operation execution //Operation execution parameters var tMembers = new GetHieMembers() { tArg = new GetHieMembersArg() { parent = new HmKey() { p = string.Empty }, filter = new HmsFilter(), pattern = new HmsPattern() { attributes = string.Empty, getAttsTextValues = true } }, tHie = id }; //Get list of indicators var result = somClient.GetHieMembers(tMembers); return result; }
See also:
Working with Time Series Database