Package com.kuzudb
Class ValueMapUtil
java.lang.Object
com.kuzudb.ValueMapUtil
Utility functions for Value of map type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Value
Get the key from the given map value by the given index.static long
getNumFields
(Value value) Get the number of fields of the map value.static Value
Get the value from the given map value by the given index.
-
Constructor Details
-
ValueMapUtil
public ValueMapUtil()
-
-
Method Details
-
getNumFields
Get the number of fields of the map value.- Parameters:
value
- : The map value.- Returns:
- The number of fields of the map value.
- Throws:
ObjectRefDestroyedException
- If the map value has been destroyed.
-
getKey
Get the key from the given map value by the given index.- Parameters:
value
- : The map value.index
- : The index of the key.- Returns:
- The key from the given map value by the given index.
- Throws:
ObjectRefDestroyedException
- If the map value has been destroyed.
-
getValue
Get the value from the given map value by the given index.- Parameters:
value
- : The map value.index
- : The index of the value.- Returns:
- The value from the given map value by the given index.
- Throws:
ObjectRefDestroyedException
- If the map value has been destroyed.
-