A map is a List of Struct containing keys and values fields. Optionally, you can provide custom name for the key and value fields.
(
keys,
values,
keys_name='keys',
values_name='values',
lengths_blob=None
)
| 898 | |
| 899 | |
| 900 | def Map( |
| 901 | keys, |
| 902 | values, |
| 903 | keys_name='keys', |
| 904 | values_name='values', |
| 905 | lengths_blob=None |
| 906 | ): |
| 907 | """A map is a List of Struct containing keys and values fields. |
| 908 | Optionally, you can provide custom name for the key and value fields. |
| 909 | """ |
| 910 | return List( |
| 911 | Struct((keys_name, keys), (values_name, values)), |
| 912 | lengths_blob=lengths_blob |
| 913 | ) |
| 914 | |
| 915 | def MapWithEvicted( |
| 916 | keys, |