Create UDF on record keys




I have a set with the following data model:

  • Key: a single string represents a domain
  • Value: a list of string user ids associated with the domain

For example, | 11,22,33

.us | 44, 55 | 66,77

From the client side, for each domain, I’d like to get the associated user ids. The caveat is when subdomain rules are applied. For example, here are the list of inputs and expected results | 44,55 | 11,22,33 | 66,77

One way to go about this is splitting the domain into subdomains and do a multiget for all the domains. Can UDF be used in this case? I’m not quite experienced with UDF yet, but checking the documentation it seems like we can only write UDF for secondary indexes?