Package com.kuzudb
Class KuzuMap
java.lang.Object
com.kuzudb.KuzuMap
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KuzuMap
Construct a map from a value- Parameters:
value
- the value to construct the map from
-
KuzuMap
Construct a map literal from a given set of keys/values. The length of the key/value arrays must be the same.- Parameters:
keys
- : The keys in the mapvalues
- : The values in the map- Throws:
ObjectRefDestroyedException
-
-
Method Details
-
getValue
- Returns:
- Gets the underlying Value for the map
-
getNumFields
- Returns:
- The number of fields in the map.
- Throws:
ObjectRefDestroyedException
- If the map has been destroyed.
-
getKey
Get the key at the given index.- Parameters:
index
- : The index of the key.- Returns:
- The key.
- Throws:
ObjectRefDestroyedException
- If the map has been destroyed.
-
getValue
Get the value at the given index.- Parameters:
index
- : The index of the value.- Returns:
- The value.
- Throws:
ObjectRefDestroyedException
- If the map value has been destroyed.
-
close
Closes this object, relinquishing the underlying value- Specified by:
close
in interfaceAutoCloseable
- Throws:
ObjectRefDestroyedException
-